FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - gokhannsahin

Pages: 1 [2]
16
Discussion - Software / Re: Lower case letter problem
« on: November 13, 2017, 01:24:29 PM »
when the images want to display before the setfont2 function, then everything is normal, so both the image and font are displaying on the page.
Code: [Select]
vCommandImageCoBuf(&xHomeImages[4]);
        vCommandCoBuf(BITMAP_HANDLE(3));
vCommandCoBuf(BITMAP_SOURCE(xHomeImages[2].ulGraphicRamAddr));
vCommandCoBuf(BITMAP_LAYOUT(L4, 21, 55));
vCommandCoBuf( BITMAP_SIZE(NEAREST, BORDER, BORDER, 42, 55));
vCommandSetFont2CoBuf(xNumberSpeed.w_font, xHomeImages[2].ulGraphicRamAddr, 32);

The image after the setfont2 function isn't displaying but the first image and font are displaying well.
Code: [Select]
vCommandImageCoBuf(&xHomeImages[4]);
        vCommandCoBuf(BITMAP_HANDLE(3));
vCommandCoBuf(BITMAP_SOURCE(xHomeImages[2].ulGraphicRamAddr));
vCommandCoBuf(BITMAP_LAYOUT(L4, 21, 55));
vCommandCoBuf( BITMAP_SIZE(NEAREST, BORDER, BORDER, 42, 55));
vCommandSetFont2CoBuf(xNumberSpeed.w_font, xHomeImages[2].ulGraphicRamAddr, 32);
        vCommandImageCoBuf(&xHomeImages[2]);  // this image isn't displaying

Note: BITMAP_HANDLEs are different.
Should I call the bitmap commands before setfont2 function for the font using? Or after?

17
Discussion - Software / Re: Lower case letter problem
« on: November 13, 2017, 09:24:26 AM »

Sorry, I have a question again about font using.
How can I use both image and font on the same page? I can't display the image after any font has been uploaded and set.

18
Discussion - Software / Re: Lower case letter problem
« on: November 02, 2017, 11:53:15 AM »
After the font converter tool has been updated, the error has been fixed.
Thanks a lot.

19
Discussion - Software / Re: Lower case letter problem
« on: October 27, 2017, 01:40:43 PM »
Thank you for your interest, but I get an error while trying the code which sent.

Code: [Select]
converting ASCII coding file ansi_32_126.txt
Traceback (most recent call last):
  File "<string>", line 427, in <module>
  File "<string>", line 135, in run
  File "C:\Users\xin.tang\Downloads\pyinstaller-develop\pyinstaller-develop\fnt_cvt\build\fnt_cvt\out00-PYZ.pyz\codecs", line 668, in read
  File "C:\Users\xin.tang\Downloads\pyinstaller-develop\pyinstaller-develop\fnt_cvt\build\fnt_cvt\out00-PYZ.pyz\codecs", line 474, in read
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)

20
Discussion - Software / Re: Lower case letter problem
« on: October 26, 2017, 06:23:46 AM »
I have tried that condition in FTDI EVE Screen Editor too as I have mentioned above. The result is same.
I have attached the images about FTDI Eve Editor and the converted raw font data.


21
Discussion - Software / Lower case letter problem
« on: October 24, 2017, 01:33:09 PM »
I need to use a fixed-width font in an application. I have tried to convert the Consolas font is 29 size via fnt_cvt.
I have used the code is being shown in below as ASCII table, also converting code for fnt_cvt.
Code: [Select]
" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
fnt_cvt.exe -i consola.ttf -s 29 -u ANSI_32_126.txt -c setfont2
Everything is normal while using upper case letters/number or other special ch. in a text.
However, I have a problem while using the lower case letters.
While writing a new lower case letter, it writes over a previous one.
I guess that the lower case letters' width is zero. What should I do in order to solve this problem?

Pages: 1 [2]