The Painter now uses a special version of the agg_font_engine that uses the FontServer ftlib and the already loaded FT_Facees from ServerFont/FontStyle instead of doing it all again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12177 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include <Font.h>
|
||||
#include <Rect.h>
|
||||
#include <FontServer.h>
|
||||
#include <ServerFont.h>
|
||||
|
||||
#include "defines.h"
|
||||
#include "forwarding_pixfmt.h"
|
||||
@@ -205,15 +207,6 @@ class Painter {
|
||||
uint32 length,
|
||||
const BPoint& baseLine) const;
|
||||
|
||||
// MISSING (?):
|
||||
/*
|
||||
|
||||
|
||||
// "screen blits"
|
||||
void CopyBits( BRect src, BRect dst);
|
||||
*/
|
||||
|
||||
|
||||
private:
|
||||
void _MakeEmpty();
|
||||
|
||||
@@ -228,7 +221,7 @@ class Painter {
|
||||
|
||||
void _RebuildClipping();
|
||||
|
||||
void _UpdateFont(const char* pathToFontFile = NULL);
|
||||
void _UpdateFont();
|
||||
void _UpdateLineWidth();
|
||||
|
||||
// drawing functions stroke/fill
|
||||
@@ -306,7 +299,7 @@ class Painter {
|
||||
BPoint fPenLocation;
|
||||
PatternHandler* fPatternHandler;
|
||||
|
||||
BFont fFont;
|
||||
ServerFont fFont;
|
||||
// a class handling rendering and caching of glyphs
|
||||
// it is setup to load from a specific Freetype supported
|
||||
// font file, it uses the FontManager to locate a file
|
||||
|
||||
Reference in New Issue
Block a user