Using a graphic library..

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using a graphic library..

1,266 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu Jun 14 18:10:33 MST 2012
Is there any other graphic library besides emWIN and Swim for the LPC1788?
标签 (1)
0 项奖励
回复
4 回复数

1,179 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Sat Jun 16 10:55:00 MST 2012
Sorry to bother again. I've found convfnt.c file but I can't compile it. I'm using the GCC compiler. The next error message appears:

********************************************************************************

C:\Documents and Settings\Administrador\CCPP>gcc convfnt.c -o convert
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x2f6): undefined
reference to `_GetStockObject@4'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x30c): undefined
reference to `_GetStockObject@4'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x322): undefined
reference to `_GetStockObject@4'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x338): undefined
reference to `_GetStockObject@4'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x419): undefined
reference to `_GetStockObject@4'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x553): undefined
reference to `_SelectObject@8'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x575): undefined
reference to `_GetObjectA@12'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x58d): undefined
reference to `_GetTextMetricsA@8'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x6a9): undefined
reference to `_TextOutA@20'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x747): undefined
reference to `_TextOutA@20'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x7a8): undefined
reference to `_TextOutA@20'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x7e5): undefined
reference to `_TextOutA@20'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x820): undefined
reference to `_TextOutA@20'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x8b7): more unde
fined references to `_TextOutA@20' follow
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x8db): undefined
reference to `_GetTextExtentPoint32A@16'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x992): undefined
reference to `_GetPixel@12'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x13a7): undefine
d reference to `_GetDeviceCaps@8'
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\ccb973hn.o:convfnt.c:(.text+0x1453): undefine
d reference to `_CreateFontIndirectA@4'
collect2.exe: error: ld devolvi¾ el estado de salida 1

********************************************************************************

What should I do? Thank you very much for your help again!!!


0 项奖励
回复

1,178 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Fri Jun 15 09:32:00 MST 2012
Swim doesn't really have any font size limit. Each font file specifies the size of the font used for Swim rendering. By converting and adding another font file, you can get additional fonts in Swim. All the free fonts used in Swim were generated using the convfnt.c program. (You can get the source for this program by Googling it).

<code>
/* Generated by convfnt.exe*/
/* Windows FreeSystem 14x16 Font */
</code>
0 项奖励
回复

1,179 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Fri Jun 15 04:39:16 MST 2012
The main problem I have is that I need a bigger font type that SWIM supports. As I understand the biggest font type I can use with the SWIM library is winfreesystem14x16. Is it possible to use font types which size is bigger than that, at least 130x80 pixels with this library? If this is not the case what do you suggest to do? I prefer to avoid using emWIN because of it's complexity.
0 项奖励
回复

1,179 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by FrankAndersen on Thu Jun 14 23:42:13 MST 2012
You can use easyGUI, but it is not free.

Best regards, Frank
0 项奖励
回复