LDraw.org Discussion Forums

Full Version: txt2dat for unicode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2020-05-10, 7:11)Philippe Hurbain Wrote: [ -> ]Note that I didn't talk of ASCII code... I explore the character table of the font I want to use till I find the glyph I need, and add the (decimal) code to txt2dat command line:
Code:
txt2dat -a 7682 -a 65210 -a 946 -a 1488 -a 9567 -o characters.dat -l -p 50 -h 120 -c 15 -b 0 Arial.ttf

Gives this
Thanks for spelling it out for my dense brain. I thought I knew this stuff but I guess the answer to that is no.
(2020-05-10, 17:36)Orion Pobursky Wrote: [ -> ]Thanks for spelling it out for my dense brain. I thought I knew this stuff but I guess the answer to that is no.

[attachment=5205]

And it worked. Thanks again.
(2020-05-10, 7:11)Philippe Hurbain Wrote: [ -> ]Note that I didn't talk of ASCII code... I explore the character table of the font I want to use till I find the glyph I need, and add the (decimal) code to txt2dat command line:
Code:
txt2dat -a 7682 -a 65210 -a 946 -a 1488 -a 9567 -o characters.dat -l -p 50 -h 120 -c 15 -b 0 Arial.ttf

Gives this

That means that my suggestion wouldn't have worked, since -a is clearly not using the code page. It also means that somebody could write a Unicode-aware app that produces txt2dat command lines using -a, since the value after the -a appears to just be the Unicode value converted from hexadecimal to decimal.
Pages: 1 2