Exemplo n.º 1
0
static void
set_font_spacing(DrawingContext* context, int32 spacing)
{
	ServerFont font;
	font.SetSpacing(spacing);
	context->CurrentState()->SetFont(font, B_FONT_SPACING);
}
Exemplo n.º 2
0
static void
set_font_spacing(View* view, int32 spacing)
{
	ServerFont font;
	font.SetSpacing(spacing);
	view->CurrentState()->SetFont(font, B_FONT_SPACING);
}
Exemplo n.º 3
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);
}
Exemplo n.º 4
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);
}
Exemplo n.º 5
0
void
WinDecorator::_UpdateFont(DesktopSettings& settings)
{
	ServerFont font;
	if (fLook == B_FLOATING_WINDOW_LOOK)
		settings.GetDefaultPlainFont(font);
	else
		settings.GetDefaultBoldFont(font);

	font.SetFlags(B_FORCE_ANTIALIASING);
	font.SetSpacing(B_STRING_SPACING);
	fDrawState.SetFont(font);
}
Exemplo n.º 6
0
void
TabDecorator::_UpdateFont(DesktopSettings& settings)
{
	ServerFont font;
	if (fTopTab->look == B_FLOATING_WINDOW_LOOK
		|| fTopTab->look == kLeftTitledWindowLook) {
		settings.GetDefaultPlainFont(font);
		if (fTopTab->look == kLeftTitledWindowLook)
			font.SetRotation(90.0f);
	} else
		settings.GetDefaultBoldFont(font);

	font.SetFlags(B_FORCE_ANTIALIASING);
	font.SetSpacing(B_STRING_SPACING);
	fDrawState.SetFont(font);
}