En Sat, 09 Apr 2016 12:50:42 -0500, Ondrej Pokorny <laza...@kluug.net> escribió:

I test the EasyLazFreeType from lazutils package. I cannot make the example work (in directory examples\lazfreetype).

The actual problem is in TFreeTypeFont.LoadFace line "familyItem := Collection.Family[FName];" where Collection is nil (the FontCollection global variable in EasyLazFreeType is nil). I downloaded all font files and placed them into the directory, they are correctly loaded.

Can somebody help? :)

Ondrej


It runs here if I give to it three arguments in command line, example:

lazfreetypetest.exe fonts\arial.ttf fonts\timesi.ttf fonts\verdana.ttf

of course I created the directory fonts and put there the ttf files.

If you don't run it this way, it tries to get the fonts from some kind of font manager but has that is not initialized and it fails, at least that is what I remember.

Jesus Reyes A.

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to