FT_New_Face is a quite heavy function and shouldn't be called for every StringWidth, StringHeight and DrawString call. We now keep it open in FontStyle and destroy it there too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12006 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -64,13 +64,15 @@ public:
|
||||
void SetRotation(const float &value) { frotation=value; }
|
||||
void SetFace(const uint32 &value) { fFace=value; }
|
||||
|
||||
bool IsFixedWidth(void) { return fStyle->IsFixedWidth(); }
|
||||
bool IsScalable(void) { return fStyle->IsScalable(); }
|
||||
bool HasKerning(void) { return fStyle->HasKerning(); }
|
||||
bool HasTuned(void) { return fStyle->HasTuned(); }
|
||||
int32 TunedCount(void) { return fStyle->TunedCount(); }
|
||||
uint16 GlyphCount(void) { return fStyle->GlyphCount(); }
|
||||
uint16 CharMapCount(void) { return fStyle->CharMapCount(); }
|
||||
bool IsFixedWidth(void) const { return fStyle->IsFixedWidth(); }
|
||||
bool IsScalable(void) const { return fStyle->IsScalable(); }
|
||||
bool HasKerning(void) const { return fStyle->HasKerning(); }
|
||||
bool HasTuned(void) const { return fStyle->HasTuned(); }
|
||||
int32 TunedCount(void) const { return fStyle->TunedCount(); }
|
||||
uint16 GlyphCount(void) const { return fStyle->GlyphCount(); }
|
||||
uint16 CharMapCount(void) const { return fStyle->CharMapCount(); }
|
||||
|
||||
FT_Face GetFTFace() const { return fStyle->GetFTFace(); };
|
||||
|
||||
const char *GetStyle(void) const;
|
||||
const char *GetFamily(void) const;
|
||||
|
||||
Reference in New Issue
Block a user