Esempio n. 1
0
static void
set_font_face(View* view, int32 face)
{
	ServerFont font;
	font.SetFace(face);
	view->CurrentState()->SetFont(font, B_FONT_FACE);
}
Esempio n. 2
0
static void
set_font_spacing(DrawingContext* context, int32 spacing)
{
	ServerFont font;
	font.SetSpacing(spacing);
	context->CurrentState()->SetFont(font, B_FONT_SPACING);
}
Esempio n. 3
0
static void
set_font_shear(View* view, float shear)
{
	ServerFont font;
	font.SetShear(shear);
	view->CurrentState()->SetFont(font, B_FONT_SHEAR);
}
Esempio n. 4
0
static void
set_font_face(DrawingContext* context, int32 face)
{
	ServerFont font;
	font.SetFace(face);
	context->CurrentState()->SetFont(font, B_FONT_FACE);
}
Esempio n. 5
0
static void
set_font_flags(DrawingContext* context, int32 flags)
{
	ServerFont font;
	font.SetFlags(flags);
	context->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Esempio n. 6
0
static void
set_font_rotate(DrawingContext* context, float rotation)
{
	ServerFont font;
	font.SetRotation(rotation);
	context->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Esempio n. 7
0
static void
set_font_encoding(DrawingContext* context, int32 encoding)
{
	ServerFont font;
	font.SetEncoding(encoding);
	context->CurrentState()->SetFont(font, B_FONT_ENCODING);
}
Esempio n. 8
0
static void
set_font_flags(View* view, int32 flags)
{
	ServerFont font;
	font.SetFlags(flags);
	view->CurrentState()->SetFont(font, B_FONT_FLAGS);
}
Esempio n. 9
0
static void
set_font_size(DrawingContext* context, float size)
{
	ServerFont font;
	font.SetSize(size);
	context->CurrentState()->SetFont(font, B_FONT_SIZE);
}
Esempio n. 10
0
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;
}
Esempio n. 11
0
static void
set_font_rotate(View* view, float rotation)
{
	ServerFont font;
	font.SetRotation(rotation);
	view->CurrentState()->SetFont(font, B_FONT_ROTATION);
}
Esempio n. 12
0
static void
set_font_encoding(View* view, int32 encoding)
{
	ServerFont font;
	font.SetEncoding(encoding);
	view->CurrentState()->SetFont(font, B_FONT_ENCODING);
}
Esempio n. 13
0
static void
set_font_size(View* view, float size)
{
	ServerFont font;
	font.SetSize(size);
	view->CurrentState()->SetFont(font, B_FONT_SIZE);
}
Esempio n. 14
0
static void
set_font_spacing(View* view, int32 spacing)
{
	ServerFont font;
	font.SetSpacing(spacing);
	view->CurrentState()->SetFont(font, B_FONT_SPACING);
}
Esempio n. 15
0
static void
set_font_shear(DrawingContext* context, float shear)
{
	ServerFont font;
	font.SetShear(shear);
	context->CurrentState()->SetFont(font, B_FONT_SHEAR);
}
Esempio n. 16
0
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);
}
Esempio n. 17
0
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);
}
Esempio n. 18
0
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);
}
Esempio n. 19
0
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);
}
Esempio n. 20
0
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);
}
Esempio n. 21
0
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);
}
Esempio n. 22
0
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);
}
Esempio n. 23
0
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);
}
Esempio n. 24
0
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);
}
Esempio n. 25
0
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);
}
Esempio n. 26
0
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);
}
Esempio n. 27
0
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);
}
Esempio n. 28
0
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);
}
Esempio n. 29
0
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);
}
Esempio n. 30
0
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);
}