You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I understand, the standard fonts provided by "Graphics.PDF.Fonts.Standard.Font" do not provide support for Cyrillic.
So I followed the HPDF/Test/onepage.hs example without success. The generated .pdf does not display Cyrillic text.
I have tried several other fonts besides DroidSans: OpenSans, DejaVuSans, FreeSerif, TimesNewRoman, all without success.
Note that I used fontforge to convert .ttf to .pfb and .afm files as below: $ fontforge -lang=ff -c 'Open($1); Generate($2); Close();' DroidSans.ttf DroidSans.pfb
Some of them had issues with underscores (i.e. "_") and numeric digits (like "6") in .amf files when parsed with HPDF.
Is there anything else besides the example given on HPDF/Test/onepage.hs?
Or maybe it needs to be done in a completely different way?
Env:
LTS Haskell 19.22 (ghc-9.0.2)
HPDF 1.6.0
Thanks.
The text was updated successfully, but these errors were encountered:
Did you ever figure this out? I also notice I don't get subscripts, e.g. with Times_Roman, the string "C₂₁H₃₀O₅" prints as CHO
No. I couldn't figure out. I have tried many different .pfb and .afm files (CTAN) but it seems that it doesn't support uniXXXXX tokens in .afm files and when those tokens are missing in .afm files it returns error *** Exception: head: empty list
There is a TODO.txt file which says that "The MAIN missing feature is the support for unicode and the bidirectionnal layout algorithm that will then be required".
I guess, it is just not implemented.
Hello.
As I understand, the standard fonts provided by "
Graphics.PDF.Fonts.Standard.Font
" do not provide support for Cyrillic.So I followed the HPDF/Test/onepage.hs example without success. The generated
.pdf
does not display Cyrillic text.I have tried several other fonts besides
DroidSans
:OpenSans
,DejaVuSans
,FreeSerif
,TimesNewRoman
, all without success.Note that I used
fontforge
to convert.ttf
to.pfb
and.afm
files as below:$ fontforge -lang=ff -c 'Open($1); Generate($2); Close();' DroidSans.ttf DroidSans.pfb
Some of them had issues with underscores (i.e. "
_
") and numeric digits (like "6
") in.amf
files when parsed withHPDF
.Is there anything else besides the example given on HPDF/Test/onepage.hs?
Or maybe it needs to be done in a completely different way?
Env:
Thanks.
The text was updated successfully, but these errors were encountered: