[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 850
Date : Thu Apr 20 14:26:33 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/ftfonts.cpp
Martins fix to remove FT_Sfnt_Table_Info
Diff:
Index: Trunk/XaraLX/wxOil/ftfonts.cpp
===================================================================
--- Trunk/XaraLX/wxOil/ftfonts.cpp (revision 849)
+++ Trunk/XaraLX/wxOil/ftfonts.cpp (revision 850)
@@ -1045,16 +1045,12 @@
// first of all, retrieve the underlying font information
if (!GetPangoFcFontAndFreeTypeFaceForFaceName(pFaceName, &pPangoFcFont, &pFreeTypeFace)) return NULL;
+ // we have successfully retrieved the FreeType information (we need to release it below!)
- // we have successfully retrieved the FreeType information - we need to release the information below
- // ask FreeType for the Panose information
- FT_ULong DummyTag;
- FT_ULong DummyLen;
-
- // check whether this font has a TrueType OS/2 font table
+ // ask FreeType for the Panose information - this is found in the OS/2 font table,
+ // so check whether this font has a TrueType OS/2 font table
TT_OS2* pOS2_Table;
- if (FT_Sfnt_Table_Info(pFreeTypeFace, ft_sfnt_os2, &DummyTag, &DummyLen) != 0 /* not present */
- || (pOS2_Table = (TT_OS2*)FT_Get_Sfnt_Table(pFreeTypeFace, ft_sfnt_os2)) == NULL /* error loading */
+ if ((pOS2_Table = (TT_OS2*)FT_Get_Sfnt_Table(pFreeTypeFace, ft_sfnt_os2)) == NULL /* error loading */
|| pOS2_Table->version == 0xffff /* Mac font without OS/2 table */)
{
// we could not get the table with the Panose information, either because there
Xara