Hi,
I am playing with \lazarus\examples\lazfreetype\lazfreetypetest.lpi
within mainform.pas there is this function
FontFamilyName := FontCollection.AddFile(FileName).Family.FamilyName;
but instead of loading the .ttf font fine from disc I would like to have it inside the source code.
I was thinking of something like this
block: packed array [0..139511] of byte=
($00,$01,$00,$00,$00,$13,$01,$00,$00,$04, .....
where the contents of the array are a hex dump of the .ttf file.
Is there a way to do this (instead of resource files I guess)?