无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
楼主: 2011895866818

[原创] [2012.09.15][GRUB即GRLDR启动菜单字体制作工具]

    [复制链接]
发表于 2012-9-16 20:52:40 | 显示全部楼层

回复 #120 2011czmxbb52 的帖子

或者,有什么办法可以提高字库的画质?
回复

使用道具 举报

发表于 2012-9-17 14:47:56 | 显示全部楼层
就原来代码没变,加了个资源:两个对话框,一个版本信息表结果一堆错,输出(VS2005,按默认配置):
  1. 1>------ 已启动生成: 项目: bdf2hex, 配置: Release Win32 ------
  2. 1>正在编译...
  3. 1>ViewForm.cpp
  4. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\ViewForm.h(17) : error C2065: 'IDD_DIALOG2' : undeclared identifier
  5. 1>.\ViewForm.cpp(48) : error C3646: 'END_DISPATCH_MAP' : unknown override specifier
  6. 1>.\ViewForm.cpp(55) : error C3646: 'IID' : unknown override specifier
  7. 1>.\ViewForm.cpp(55) : error C3646: 'IID_IViewForm' : unknown override specifier
  8. 1>.\ViewForm.cpp(55) : error C2270: 'BEGIN_DISPATCH_MAP' : modifiers not allowed on nonmember functions
  9. 1>.\ViewForm.cpp(55) : error C2091: function returns function
  10. 1>.\ViewForm.cpp(55) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  11. 1>.\ViewForm.cpp(55) : error C2072: 'BEGIN_DISPATCH_MAP' : initialization of a function
  12. 1>.\ViewForm.cpp(56) : error C2078: too many initializers
  13. 1>.\ViewForm.cpp(59) : error C2065: 'IID_IViewForm' : undeclared identifier
  14. 1>FormGui.cpp
  15. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.h(17) : error C2065: 'IDD_DIALOG1' : undeclared identifier
  16. 1>.\FormGui.cpp(44) : error C3646: 'END_DISPATCH_MAP' : unknown override specifier
  17. 1>.\FormGui.cpp(51) : error C3646: 'IID' : unknown override specifier
  18. 1>.\FormGui.cpp(51) : error C3646: 'IID_IFormGui' : unknown override specifier
  19. 1>.\FormGui.cpp(51) : error C2270: 'BEGIN_DISPATCH_MAP' : modifiers not allowed on nonmember functions
  20. 1>.\FormGui.cpp(51) : error C2091: function returns function
  21. 1>.\FormGui.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  22. 1>.\FormGui.cpp(51) : error C2072: 'BEGIN_DISPATCH_MAP' : initialization of a function
  23. 1>.\FormGui.cpp(52) : error C2078: too many initializers
  24. 1>.\FormGui.cpp(55) : error C2065: 'IID_IFormGui' : undeclared identifier
  25. 1>bdf2hex.cpp
  26. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.h(17) : error C2065: 'IDD_DIALOG1' : undeclared identifier
  27. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(44) : error C3646: 'END_DISPATCH_MAP' : unknown override specifier
  28. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C3646: 'IID' : unknown override specifier
  29. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C3646: 'IID_IFormGui' : unknown override specifier
  30. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C2270: 'BEGIN_DISPATCH_MAP' : modifiers not allowed on nonmember functions
  31. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C2091: function returns function
  32. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  33. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(51) : error C2072: 'BEGIN_DISPATCH_MAP' : initialization of a function
  34. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(52) : error C2078: too many initializers
  35. 1>d:\backup\我的文档\visual studio 2005\projects\bdf2hex\bdf2hex\FormGui.cpp(55) : error C2065: 'IID_IFormGui' : undeclared identifier
  36. 1>.\bdf2hex.cpp(31) : error C2143: syntax error : missing ';' before '->'
  37. 1>.\bdf2hex.cpp(31) : error C2143: syntax error : missing ';' before '->'
  38. 1>.\bdf2hex.cpp(32) : error C2143: syntax error : missing ';' before '->'
  39. 1>.\bdf2hex.cpp(32) : error C2143: syntax error : missing ';' before '->'
  40. 1>.\bdf2hex.cpp(365) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
  41. 1>生成日志保存在“file://d:\Backup\我的文档\Visual Studio 2005\Projects\bdf2hex\bdf2hex\Release\BuildLog.htm”
  42. 1>bdf2hex - 34 个错误,1 个警告
  43. ========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
复制代码

附件是源码
帮忙看看!谢谢:

bdf2hex.rar

12.3 KB, 下载次数: 21, 下载积分: 无忧币 -2

回复

使用道具 举报

发表于 2012-9-17 15:40:40 | 显示全部楼层
原帖由 2011czmxbb52 于 2012-9-17 14:47 发表
就原来代码没变,加了个资源:两个对话框,一个版本信息表结果一堆错,输出(VS2005,按默认配置):
1>------ 已启动生成: 项目: bdf2hex, 配置: Release Win32 ------
1>正在编译...
1>ViewForm.cpp
1>d: ...

給你diff
  1. diff -U8 -r bdf2hex/bdf2hex/FormGui.h bdf2hex_/bdf2hex/FormGui.h
  2. --- bdf2hex/bdf2hex/FormGui.h        2012-09-17 14:27:38.218750000 +0800
  3. +++ bdf2hex_/bdf2hex/FormGui.h        2012-09-17 15:25:30.795750000 +0800
  4. @@ -1,10 +1,12 @@
  5. #pragma once

  6. +#include <afxdisp.h>
  7. +#include "stdafx.h"

  8. // FormGui 对话框

  9. class FormGui : public CDialog
  10. {
  11.         DECLARE_DYNAMIC(FormGui)

  12. public:
  13. diff -U8 -r bdf2hex/bdf2hex/ViewForm.h bdf2hex_/bdf2hex/ViewForm.h
  14. --- bdf2hex/bdf2hex/ViewForm.h        2012-09-17 14:31:19.125000000 +0800
  15. +++ bdf2hex_/bdf2hex/ViewForm.h        2012-09-17 15:26:27.655125000 +0800
  16. @@ -1,10 +1,12 @@
  17. #pragma once

  18. +#include "stdafx.h"
  19. +#include <afxdisp.h>

  20. // ViewForm 对话框

  21. class ViewForm : public CDialog
  22. {
  23.         DECLARE_DYNAMIC(ViewForm)

  24. public:
  25. diff -U8 -r bdf2hex/bdf2hex/bdf2hex.cpp bdf2hex_/bdf2hex/bdf2hex.cpp
  26. --- bdf2hex/bdf2hex/bdf2hex.cpp        2012-09-17 14:47:25.312500000 +0800
  27. +++ bdf2hex_/bdf2hex/bdf2hex.cpp        2012-09-17 15:28:28.108250000 +0800
  28. @@ -1,40 +1,40 @@
  29. // bdf2hex.cpp : 定义控制台应用程序的入口点。
  30. //

  31. #include "stdafx.h"
  32. -#include "FormGui.cpp"
  33. #include "FOrmGui.h"
  34. using namespace std;
  35. void usage();
  36. void a2A(char *);


  37. int main(int argc,char *argv[])
  38. {
  39.         char *infile=NULL,*outfile=NULL;
  40.         int letterskip=1,preview=0,moveleft=0,moveup=0;
  41. +        FormGui FormGui;
  42.         if(argc==1)
  43.         {
  44.                 usage();
  45.                 return 1;
  46.         }
  47.         argc--;
  48.         argv++;
  49.         while(argc>0)
  50.         {
  51.                 if(argv[0][0]=='-')
  52.                 {
  53.                         switch(argv[0][1])
  54.                         {
  55.                         case 'g':
  56.                         case 'G':
  57. -                                FormGui->Create(IDD_DIALOG1,NULL);
  58. -                                FormGui->ShowWindow(SW_SHOW);
  59. +                                FormGui.Create(IDD_DIALOG1,NULL);
  60. +                                FormGui.ShowWindow(SW_SHOW);
  61.                         case 's':
  62.                         case 'S':
  63.                                 argc--;argv++;
  64.                                 letterskip=0;
  65.                                 break;
  66.                         case 'p':
  67.                         case 'P':
  68.                                 argc--;argv++;
  69. diff -U8 -r bdf2hex/bdf2hex/stdafx.h bdf2hex_/bdf2hex/stdafx.h
  70. --- bdf2hex/bdf2hex/stdafx.h        2012-09-17 11:58:10.046875000 +0800
  71. +++ bdf2hex_/bdf2hex/stdafx.h        2012-09-17 15:25:21.748875000 +0800
  72. @@ -14,11 +14,14 @@

  73. // TODO: 在此处引用程序需要的其他头文件
  74. #include <iostream>
  75. #include <fstream>
  76. #include <string>
  77. #include <iomanip>
  78. #include <afxwin.h>
  79. #include <windows.h>
  80. +
  81. +#include "resource.h"
  82. +
  83. //#define _itoa_s _itoa
  84. //#define strcat_s strcat
  85. //#define strcpy_s strcpy
  86. \ No newline at end of file
复制代码
回复

使用道具 举报

发表于 2012-9-20 16:45:12 | 显示全部楼层
好了,GUI快完工了!
现在剩下的唯一问题是如何向main向命令行中条用一样的传递参数?
更烦的是跟文字框关联的变量是CString类型的不是别的容易操作的类型,怎么办?谢谢!(更重要的是还不定长!)
怎么办?
两个CString是个是bdffile(指示bdf文件在哪),另外一个是hexfile(指示hex存档在哪)

[ 本帖最后由 2011czmxbb52 于 2012-9-20 16:46 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2012-9-20 18:15:25 | 显示全部楼层
原帖由 2011czmxbb52 于 2012-9-20 16:45 发表
好了,GUI快完工了!
现在剩下的唯一问题是如何向main向命令行中条用一样的传递参数?
更烦的是跟文字框关联的变量是CString类型的不是别的容易操作的类型,怎么办?谢谢!(更重要的是还不定长!)
怎么办? ...

精神上支持一下........
回复

使用道具 举报

发表于 2012-9-20 21:29:43 | 显示全部楼层
原帖由 2011czmxbb52 于 2012-9-20 16:45 发表
好了,GUI快完工了!
现在剩下的唯一问题是如何向main向命令行中条用一样的传递参数?
更烦的是跟文字框关联的变量是CString类型的不是别的容易操作的类型,怎么办?谢谢!(更重要的是还不定长!)
怎么办? ...

就從 CString 輸出 const char * 即可。
http://msdn.microsoft.com/zh-tw/ ... 9%28v=vs.80%29.aspx
回复

使用道具 举报

发表于 2012-9-21 12:03:26 | 显示全部楼层
这样转换对不对?

  1.         char * arg[3]= { (LPSTR)bdfpath.GetBuffer(bdfpath.GetLength()), "-o", (LPSTR)hexpath.GetBuffer(hexpath.GetLength())};
  2.         main(3,arg);
复制代码

会不会存在把:和\转丢了的事情?
回复

使用道具 举报

发表于 2012-9-21 12:28:11 | 显示全部楼层
貌似很强悍呢 谢谢分享
回复

使用道具 举报

发表于 2012-9-21 13:12:40 | 显示全部楼层
测试是否可回复

评分

参与人数 1无忧币 -10 收起 理由
2011czmxbb52 -10 恶意灌水

查看全部评分

回复

使用道具 举报

发表于 2012-9-28 20:34:05 | 显示全部楼层
qqqqqqqqqqqqqqq

评分

参与人数 1无忧币 -10 收起 理由
2011czmxbb52 -10 恶意灌水

查看全部评分

回复

使用道具 举报

发表于 2012-10-3 11:27:20 | 显示全部楼层
GB2312编码表字库还是很全的啊
回复

使用道具 举报

发表于 2012-10-3 14:54:42 | 显示全部楼层
How make font Hex Multi lang ?? . I use windown Font Unicode but Err Lang in Font Hex
回复

使用道具 举报

发表于 2012-10-3 14:54:45 | 显示全部楼层
How make font Hex Multi lang ?? . I use windown Font Unicode but Err Lang in Font Hex
回复

使用道具 举报

 楼主| 发表于 2012-10-4 17:38:09 | 显示全部楼层
原帖由 2011Tduy09 于 2012-10-3 14:54 发表
How make font Hex Multi lang ?? . I use windown Font Unicode but Err Lang in Font Hex


Can it be changed to bdf font,by ttf2bdf.exe.?
If yes,I think bdf2hex.exe works.
回复

使用道具 举报

发表于 2012-10-5 14:55:11 | 显示全部楼层
example windows Arial Unicode,  how to convert to font Hez  support Multlang Unicode code. Thank
回复

使用道具 举报

 楼主| 发表于 2012-10-5 19:26:17 | 显示全部楼层
原帖由 2011Tduy09 于 2012-10-5 14:55 发表
example windows Arial Unicode,  how to convert to font Hez  support Multlang Unicode code. Thank


Did you mean this font,if not,I do not know which font.

arial unicode ms.part01.rar

300 KB, 下载次数: 37, 下载积分: 无忧币 -2

arial unicode ms.part02.rar

300 KB, 下载次数: 38, 下载积分: 无忧币 -2

arial unicode ms.part03.rar

28.1 KB, 下载次数: 29, 下载积分: 无忧币 -2

回复

使用道具 举报

发表于 2012-10-10 15:09:42 | 显示全部楼层
GUI弄好了!
MFC写的,VS2005
139楼有补丁!
现成的exe(需安装VC2005运行库):

bdf2hex.rar (47.14 KB, 下载次数: 69)
回复

使用道具 举报

发表于 2012-10-11 09:14:05 | 显示全部楼层
太强了,一定要支持。
回复

使用道具 举报

发表于 2012-10-11 17:00:13 | 显示全部楼层
修正BUG:按复选框无效的BUG
现成的exe:
bdf2hex.rar (46.31 KB, 下载次数: 80)
回复

使用道具 举报

发表于 2012-10-12 13:21:09 | 显示全部楼层
哪位能帮我把这个写成多线程的?
转换大的字体的时候会比较慢,界面会卡。
谢谢!
源码见附件。

bdf2hex.rar

60 KB, 下载次数: 25, 下载积分: 无忧币 -2

回复

使用道具 举报

发表于 2012-10-12 21:02:38 | 显示全部楼层
这个要高手出马了。。。
回复

使用道具 举报

发表于 2012-10-16 17:04:54 | 显示全部楼层
这回是多线程版本

bdf2hexGUI源码.rar

70.6 KB, 下载次数: 77, 下载积分: 无忧币 -2

bdf2hex.rar

47.01 KB, 下载次数: 110, 下载积分: 无忧币 -2

回复

使用道具 举报

发表于 2012-10-16 20:07:12 | 显示全部楼层
这回是多线程版本
----------------------
支持一下热心人。你的几个pe现在也没有更新了。
回复

使用道具 举报

发表于 2012-10-17 22:13:58 | 显示全部楼层
收藏0000000000000
回复

使用道具 举报

发表于 2012-10-20 17:34:32 | 显示全部楼层
学习。。。。。。。。
回复

使用道具 举报

发表于 2012-12-1 16:14:06 | 显示全部楼层
等了这么久 终于有人 做出 UNIFONT字体制作工具  
谢谢啊!!!
回复

使用道具 举报

发表于 2013-1-29 10:23:06 | 显示全部楼层
谢谢楼主,做个标记。
回复

使用道具 举报

发表于 2013-1-30 17:36:09 | 显示全部楼层
感觉没有什么奇特的地方.
回复

使用道具 举报

发表于 2013-2-3 22:53:47 | 显示全部楼层
这个真不错,一定要下载看一看
回复

使用道具 举报

发表于 2013-9-17 10:53:44 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-18 14:13

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表