fpmake: added c-style operators compiler switch (thanks to Kambi)

glfreetype: added more verbose error message (thanks to Kambi)
added Ubuntu-R.ttf to SVN
started work on a base font class

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2232 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blaszijk
2012-01-06 19:53:46 +00:00
parent 852efcdf25
commit c3e857b8c9
4 changed files with 84 additions and 1 deletions

View File

@ -206,7 +206,7 @@ begin
//Of all the places where the code might die, this is the most likely,
//as FT_New_Face will die if the font file does not exist or is somehow broken.
if FT_New_Face(library_, PChar(fname), 0, face) = 1 then
raise Exception.Create('FT_New_Face failed (there is probably a problem with your font file)');
raise Exception.CreateFmt('FT_New_Face failed (there is probably a problem with your font file "%s")', [fname]);
//For some twisted reason, Freetype measures font size
//in terms of 1/64ths of pixels. Thus, to make a font