static void set_font_face(View* view, int32 face) { ServerFont font; font.SetFace(face); view->CurrentState()->SetFont(font, B_FONT_FACE); }
static void set_font_spacing(DrawingContext* context, int32 spacing) { ServerFont font; font.SetSpacing(spacing); context->CurrentState()->SetFont(font, B_FONT_SPACING); }
static void set_font_shear(View* view, float shear) { ServerFont font; font.SetShear(shear); view->CurrentState()->SetFont(font, B_FONT_SHEAR); }
static void set_font_face(DrawingContext* context, int32 face) { ServerFont font; font.SetFace(face); context->CurrentState()->SetFont(font, B_FONT_FACE); }
static void set_font_flags(DrawingContext* context, int32 flags) { ServerFont font; font.SetFlags(flags); context->CurrentState()->SetFont(font, B_FONT_FLAGS); }
static void set_font_rotate(DrawingContext* context, float rotation) { ServerFont font; font.SetRotation(rotation); context->CurrentState()->SetFont(font, B_FONT_ROTATION); }
static void set_font_encoding(DrawingContext* context, int32 encoding) { ServerFont font; font.SetEncoding(encoding); context->CurrentState()->SetFont(font, B_FONT_ENCODING); }
static void set_font_flags(View* view, int32 flags) { ServerFont font; font.SetFlags(flags); view->CurrentState()->SetFont(font, B_FONT_FLAGS); }
static void set_font_size(DrawingContext* context, float size) { ServerFont font; font.SetSize(size); context->CurrentState()->SetFont(font, B_FONT_SIZE); }
bool FontCacheEntry::Init(const ServerFont& font) { if (fGlyphCache == NULL) return false; glyph_rendering renderingType = _RenderTypeFor(font); // TODO: encoding from font FT_Encoding charMap = FT_ENCODING_NONE; bool hinting = font.Hinting(); if (!fEngine.Init(font.Path(), 0, font.Size(), charMap, renderingType, hinting)) { fprintf(stderr, "FontCacheEntry::Init() - some error loading font " "file %s\n", font.Path()); return false; } if (fGlyphCache->Init() != B_OK) { fprintf(stderr, "FontCacheEntry::Init() - failed to allocate " "GlyphCache table for font file %s\n", font.Path()); return false; } return true; }
static void set_font_rotate(View* view, float rotation) { ServerFont font; font.SetRotation(rotation); view->CurrentState()->SetFont(font, B_FONT_ROTATION); }
static void set_font_encoding(View* view, int32 encoding) { ServerFont font; font.SetEncoding(encoding); view->CurrentState()->SetFont(font, B_FONT_ENCODING); }
static void set_font_size(View* view, float size) { ServerFont font; font.SetSize(size); view->CurrentState()->SetFont(font, B_FONT_SIZE); }
static void set_font_spacing(View* view, int32 spacing) { ServerFont font; font.SetSpacing(spacing); view->CurrentState()->SetFont(font, B_FONT_SPACING); }
static void set_font_shear(DrawingContext* context, float shear) { ServerFont font; font.SetShear(shear); context->CurrentState()->SetFont(font, B_FONT_SHEAR); }
static void set_font_size(void* _canvas, float size) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetSize(size); canvas->CurrentState()->SetFont(font, B_FONT_SIZE); }
static void set_font_encoding(void* _canvas, uint8 encoding) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetEncoding(encoding); canvas->CurrentState()->SetFont(font, B_FONT_ENCODING); }
static void set_font_shear(void* _canvas, float shear) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetShear(shear); canvas->CurrentState()->SetFont(font, B_FONT_SHEAR); }
static void set_font_face(void* _canvas, uint16 face) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetFace(face); canvas->CurrentState()->SetFont(font, B_FONT_FACE); }
static void set_font_size(void* _context, float size) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetSize(size); context->CurrentState()->SetFont(font, B_FONT_SIZE); }
static void set_font_encoding(void* _context, uint8 encoding) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetEncoding(encoding); context->CurrentState()->SetFont(font, B_FONT_ENCODING); }
static void set_font_flags(void* _canvas, uint32 flags) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetFlags(flags); canvas->CurrentState()->SetFont(font, B_FONT_FLAGS); }
static void set_font_spacing(void* _context, uint8 spacing) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetSpacing(spacing); context->CurrentState()->SetFont(font, B_FONT_SPACING); }
static void set_font_shear(void* _context, float shear) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetShear(shear); context->CurrentState()->SetFont(font, B_FONT_SHEAR); }
static void set_font_rotation(void* _context, float rotation) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetRotation(rotation); context->CurrentState()->SetFont(font, B_FONT_ROTATION); }
static void set_font_rotation(void* _canvas, float rotation) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetRotation(rotation); canvas->CurrentState()->SetFont(font, B_FONT_ROTATION); }
static void set_font_flags(void* _context, uint32 flags) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetFlags(flags); context->CurrentState()->SetFont(font, B_FONT_FLAGS); }
static void set_font_family(DrawingContext* context, const char* family) { FontStyle* fontStyle = gFontManager->GetStyleByIndex(family, 0); ServerFont font; font.SetStyle(fontStyle); context->CurrentState()->SetFont(font, B_FONT_FAMILY_AND_STYLE); }
static void set_font_face(void* _context, uint16 face) { DrawingContext* context = reinterpret_cast<DrawingContext *>(_context); ServerFont font; font.SetFace(face); context->CurrentState()->SetFont(font, B_FONT_FACE); }
static void set_font_spacing(void* _canvas, uint8 spacing) { Canvas* const canvas = reinterpret_cast<Canvas*>(_canvas); ServerFont font; font.SetSpacing(spacing); canvas->CurrentState()->SetFont(font, B_FONT_SPACING); }