try to handle the SetFontFamily case in ServerPicture, although it doesn't work. Maybe I'm not doing it correctly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -610,16 +610,22 @@ set_scale(View *view, float scale)
|
|||||||
static void
|
static void
|
||||||
set_font_family(View *view, const char *family)
|
set_font_family(View *view, const char *family)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
FontStyle *fontStyle = gFontManager->GetStyle(family, NULL,
|
||||||
// Can we have a ServerFont::SetFamily() which accepts a string ?
|
0, 0, 0);
|
||||||
|
ServerFont font;
|
||||||
|
font.SetStyle(fontStyle);
|
||||||
|
view->CurrentState()->SetFont(font, B_FONT_FAMILY_AND_STYLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_font_style(View *view, const char *style)
|
set_font_style(View *view, const char *style)
|
||||||
{
|
{
|
||||||
// TODO: Implement
|
FontStyle *fontStyle = gFontManager->GetStyle(NULL, style,
|
||||||
// Can we have a ServerFont::SetStyle() which accepts a string ?
|
0, 0, 0);
|
||||||
|
ServerFont font;
|
||||||
|
font.SetStyle(fontStyle);
|
||||||
|
view->CurrentState()->SetFont(font, B_FONT_FAMILY_AND_STYLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user