|
Post by tofumax on May 19, 2017 13:28:49 GMT -8
Hi I have problem load asset and costom fonts
Can any one make mi a twice biegger or one and half then ROM font 34 Looking like Digital or normal Fonts ?
A was traing to made it my self ,.. but i Fail ... Please help ..
|
|
|
Post by tofumax on May 19, 2017 13:40:29 GMT -8
|
|
|
Post by lightcalamar on May 20, 2017 3:29:36 GMT -8
To be able to put your code? I use this;
GD.cmd_fgcolor(CHERRY); GD.ColorRGB(WHITE);
GD.SaveContext(); GD.cmd_romfont(1, 34); // Font 34 GD.cmd_button(0, 0, 480, 62, 1, 0, "Multi Data Center"); // 1 --> romfont 34 GD.RestoreContext();
|
|
|
Post by tofumax on May 20, 2017 11:06:29 GMT -8
I can use Rom Font 34 i would like bigger
|
|
|
Post by jamesbowman on May 21, 2017 7:21:09 GMT -8
Bigger than font 34? That's large.
You could convert a TTF font at any size, and use a pixel format of L1 so that it fits in memory.
|
|
|
Post by tofumax on May 22, 2017 13:13:15 GMT -8
I would like to display a single variable and some graphical squares or lines. The lines have to simulate values of this variable like car clocks That's why they need such big fonts
I need so big fonts because the car is pretty fast almost 300 bhp. And to see the variables must be large
I tried installing Python and asset converter and fail.
I read all the posts about custom fonts, and unfortunately I was not able to do it I need twice the size of the font and 150% larger than the 34 fonts
|
|
|
Post by lightcalamar on May 22, 2017 23:26:52 GMT -8
Use Python asset converter with Ubuntu 16.04 (or another distribution Linux), work fine!. With Windows not running converter fonttype2 .ttf, only images (JPG and PNG).
If you wish I could convert your fonts, put attachment and I perform.
|
|
|
Post by tofumax on May 24, 2017 13:04:30 GMT -8
If you wish I could convert your fonts, put attachment and I perform. Look at these because I do not know what they contain either one pattern or more generally I mean 200% bigger then Rom Font 34 and maybe 150% and instructions how to get it to the program arduino Thanks a lot
|
|
|
Post by lightcalamar on May 25, 2017 9:01:16 GMT -8
Create font. Use LOAD_ASSET font. Attachments:font_3.7z (82.41 KB)
|
|
|
Post by tofumax on May 27, 2017 15:57:59 GMT -8
OK But great thanks
|
|
|
Post by tofumax on Jun 7, 2017 13:46:45 GMT -8
thanks a lot I did not have time to deal with new fonts
I bought a sd card reader at SPI
And i have another problem to run "softwere" SPI but connection on hardwere SPi works ok ... but the display uses this link so i have to run it on softwere spi? And I am using Arduino 1.6.13 al library unless it was written under 1.0 x
And I got stuck
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 28, 2019 2:20:17 GMT -8
Use Python asset converter with Ubuntu 16.04 (or another distribution Linux), work fine!. With Windows not running converter fonttype2 .ttf, only images (JPG and PNG). If you wish I could convert your fonts, put attachment and I perform. is there a any solution for windows to convert font assets?
|
|
erkan
Junior Member
Posts: 12
|
Post by erkan on May 28, 2019 2:22:47 GMT -8
I have intalled; The Python Imaging Library, www.pythonware.com/products/pil/. Choose the version for Python 27. But still I have got this error? Why? C:\Python27>python \Python27\Scripts\gd2asset commic.ttf,size=40
Traceback (most recent call last):
File "\Python27\Scripts\gd2asset", line 4, in <module>
__import__('pkg_resources').run_script('gameduino2==0.3.0', 'gd2asset')
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 664, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1451, in run_script
exec(script_code, namespace, namespace)
File "C:\Python27\lib\site-packages\gameduino2-0.3.0-py2.7.egg\EGG-INFO\scripts\gd2asset", line 164, in <module>
File "build\bdist.win32\egg\gameduino2\prep.py", line 780, in make
File "C:\Python27\lib\site-packages\gameduino2-0.3.0-py2.7.egg\EGG-INFO\scripts\gd2asset", line 112, in addall
File "C:\Python27\lib\site-packages\gameduino2-0.3.0-py2.7.egg\EGG-INFO\scripts\gd2asset", line 66, in ttf
File "build\bdist.win32\egg\gameduino2\prep.py", line 491, in load_ttf
File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 218, in truetype
return FreeTypeFont(filename, size, index, encoding)
File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 134, in __init__
self.font = core.getfont(file, size, index, encoding)
File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 34, in __getattr__
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed
|
|