On 5 Авг, 11:55, Antony Dovgal <
t...@daylessday.org> wrote:
> The point is that this font doesn't have any characters except for special ones,
> and these cannot be represented as text (which you pass to the libharu functions).
The character codes seem normal, starting at 32 and ending at 255 (at
least as displayed by Character Map).
When rendering such characters with Windows API functions, they are
specified by normal ASCII characters. There's just a parameter
"character set" which must be set to "Symbol".
Anyway, it should be possible to embed and use a symbol font inside a
PDF - I just made a test with PDFCreator and it worked OK. The
generated PDF code looks a bit more complex though, it seems
PDFCreator makes and stores a specific encoding for the symbol font.
So I guess this won't be possible with libharu out-of-the-box. Unless
I modify my font to be a standard ASCII font with my special
characters in place of A,B,C,... I don't want to do that, but it seems
there's no quicker option. The other options are to modify libharu to
work with symbol fonts (which I don't know how long it would take), or
replace libharu with another PDF export library (which would take
long, but easier to estimate how long exactly).
Thanks,
Ivan