473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Jan 10 '08 #1
0 1636

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using...
1
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I...
10
by: Christopher Benson-Manica | last post by:
Why can't I use a class destructor in a using declaration: using MyClass::~MyClass; ? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org ...
17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
14
by: john.burton.email | last post by:
I've done some extensive searching and can't seem to find an answer to this - Is it correct to using "using" with templates, for example: using std::vector; Or do I need to specify the type...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
2
by: femtox77 | last post by:
Hello NG! A little question, what i can use dompdf via command line? The syntax is: $ php -f dompdf.php -- Can any explain me the meaning and the usage? I must pass a file .htm Thanks to...
2
by: santhu76 | last post by:
still facing the problem with dompdf.table is breaking... here is the code <table width="100%" cellpadding="0" cellspacing="0" border="0"> for ($i=0;$i<50;$i++) { <tr> <td width="20%"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.