Using load_font in dompdf

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Tempe

    #1

    Using load_font in dompdf

    Hello,
    I've been trying to get Polish characters in my pdf which is generated
    using dompdf class... Well, I've got them finally, but they aren't
    displayed correctly. I know that it is a problem with their width, and
    I've read that I can fix it using load_font.php and generating
    correct .afm files. Did anybody use it before? I am using this
    command:

    php load_font.php Trebuc trebuc.ttf trebucbd.ttf trebucit.ttf
    trebucbi.ttf

    and I get:
    'Generating .afm for trebuc.ttf...'
    And after this a message which says that there is a syntax error in
    this command. I think that command is correct and error is somewhere
    else. I don't know where.
    If anybody could help me, I will be very grateful because I've been
    trying to solve this for days now...
    And I'm tired..

    _______________ _______________ __________
    Witam,
    Wiem, ¿e temat dompdf by³ ju¿ wa³kowany i czyta³em te posty - mam
    polskie litery, tylko mam problem z ich szeroko¶ci±. Znalaz³em post na
    forum, na którym u¿ytkownik 'krokiet' t³umaczy sposób, w jaki on to
    zrobi³ (http://forum.php.pl/index.php?
    showtopic=67663 &st=0&p=355199& #entry355199),
    ale mnie on nie dzia³a. Wpisujê w liniê poleceñ:
    CODE
    php load_font.php Trebuc trebuc.ttf trebucbd.ttf trebucit.ttf
    trebucbi.ttf

    I to powinno wygenerowaæ pliki .afm.
    Mam komunikat o kopiowaniu plików ttf, a potem:

    Generating .afm for trebuc.ttf...
    Sk³adnia polecenia jest niepoprawna .

    Ale sk³adniê polecenia skopiowa³em z przyk³adu.. Czcionki te¿
    poumieszcza³em tam gdzie trzeba. Naprawdê nie wiem co robiæ :/
    Bardzo proszêo pomoc i pozdrawiam.


Working...