General Category > Discussion - Software

Lower case letter problem

(1/2) > >>

gokhannsahin:
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: --- " !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
fnt_cvt.exe -i consola.ttf -s 29 -u ANSI_32_126.txt -c setfont2
--- End code ---
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?

FTDI Community:
Hi,

Could we ask you to send us the code used to load and display the resulting font along with the files you used for the font conversion (consola.ttf and the output files).

Please send them by email to support1@ftdichip.com as a zip file

Thanks,
FTDI Community

gokhannsahin:
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.

FTDI Community:
Hello,

We advise to use the -a switch instead as shown below.

fnt_cvt.exe -i consola.ttf -s 29 -a -c setfont2

We tested this with the same consola font file and it works well.

Best Regards,
FTDI Community

gokhannsahin:
Thank you for your interest, but I get an error while trying the code which sent.


--- Code: ---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)

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version