Change FT cache manager calls to conform to the new FreeType 2.1.8 API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -120,15 +120,12 @@ public:
|
|||||||
const char *Name(void);
|
const char *Name(void);
|
||||||
FontFamily *Family(void) { return family; }
|
FontFamily *Family(void) { return family; }
|
||||||
|
|
||||||
// TODO: Re-enable when I understand how the FT2 Cache system changed from
|
FT_Face GetFace(void);
|
||||||
// 2.1.4 to 2.1.8
|
|
||||||
// FT_Face GetFace(void);
|
|
||||||
|
|
||||||
const char *GetPath(void);
|
const char *GetPath(void);
|
||||||
|
|
||||||
// TODO: Re-enable when I understand how the FT2 Cache system changed from
|
int16 ConvertToUnicode(uint16 c);
|
||||||
// 2.1.4 to 2.1.8
|
|
||||||
// int16 ConvertToUnicode(uint16 c);
|
|
||||||
protected:
|
protected:
|
||||||
friend class FontFamily;
|
friend class FontFamily;
|
||||||
FontFamily *family;
|
FontFamily *family;
|
||||||
|
|||||||
@@ -96,16 +96,11 @@ const char *FontStyle::Name(void)
|
|||||||
\brief Returns a handle to the style in question, straight from FreeType's cache
|
\brief Returns a handle to the style in question, straight from FreeType's cache
|
||||||
\return FreeType face handle or NULL if there was an internal error
|
\return FreeType face handle or NULL if there was an internal error
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TODO: Re-enable when I understand how the FT2 Cache system changed from
|
|
||||||
// 2.1.4 to 2.1.8
|
|
||||||
/*
|
|
||||||
FT_Face FontStyle::GetFace(void)
|
FT_Face FontStyle::GetFace(void)
|
||||||
{
|
{
|
||||||
FT_Face f;
|
FT_Face f;
|
||||||
return (FTC_Manager_Lookup_Face(ftmanager,cachedface,&f)!=0)?f:NULL;
|
return (FTC_Manager_LookupFace(ftmanager,(FTC_FaceID)cachedface,&f)!=0)?f:NULL;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Returns the path to the style's font file
|
\brief Returns the path to the style's font file
|
||||||
@@ -121,19 +116,14 @@ const char *FontStyle::GetPath(void)
|
|||||||
\param c An ASCII character
|
\param c An ASCII character
|
||||||
\return A Unicode value for the character
|
\return A Unicode value for the character
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TODO: Re-enable when I understand how the FT2 Cache system changed from
|
|
||||||
// 2.1.4 to 2.1.8
|
|
||||||
/*
|
|
||||||
int16 FontStyle::ConvertToUnicode(uint16 c)
|
int16 FontStyle::ConvertToUnicode(uint16 c)
|
||||||
{
|
{
|
||||||
FT_Face f;
|
FT_Face f;
|
||||||
if(FTC_Manager_Lookup_Face(ftmanager,cachedface,&f)!=0)
|
if(FTC_Manager_LookupFace(ftmanager,(FTC_FaceID)cachedface,&f)!=0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return FT_Get_Char_Index(f,c);
|
return FT_Get_Char_Index(f,c);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Creates a new ServerFont object for the style, given size, shear, and rotation.
|
\brief Creates a new ServerFont object for the style, given size, shear, and rotation.
|
||||||
|
|||||||
Reference in New Issue
Block a user