Font rendering code should be cleaner, maybe a little more efficient and better documented. Rotated text is supported again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -74,15 +74,12 @@ class Painter {
|
||||
void SetPattern(const pattern& p);
|
||||
|
||||
void SetPenLocation(const BPoint& location);
|
||||
void SetFont(const BFont& font);
|
||||
void SetFont(const ServerFont& font);
|
||||
|
||||
// BView API compatibility (for easier testing)
|
||||
void Sync() {}
|
||||
inline void MovePenTo(const BPoint& location)
|
||||
{ SetPenLocation(location); }
|
||||
inline void SetFont(const BFont* font)
|
||||
{ if (font) SetFont(*font); }
|
||||
|
||||
// painting functions
|
||||
|
||||
@@ -310,6 +307,8 @@ class Painter {
|
||||
// by Family and Style
|
||||
AGGTextRenderer* fTextRenderer;
|
||||
uint32 fLastFamilyAndStyle;
|
||||
float fLastRotation;
|
||||
float fLastShear;
|
||||
};
|
||||
|
||||
// SetHighColor
|
||||
|
||||
Reference in New Issue
Block a user