Home | History | Annotate | Download | only in gfx

Lines Matching defs:font_info

59 // Sets style properties on |font_info| based on |font_style|.
60 void SetLogFontStyle(int font_style, LOGFONT* font_info) {
61 font_info->lfUnderline = (font_style & gfx::Font::UNDERLINE) != 0;
62 font_info->lfItalic = (font_style & gfx::Font::ITALIC) != 0;
63 font_info->lfWeight = (font_style & gfx::Font::BOLD) ? FW_BOLD : FW_NORMAL;
121 LOGFONT font_info;
122 GetObject(GetNativeFont(), sizeof(LOGFONT), &font_info);
123 font_info.lfHeight = height;
124 SetLogFontStyle(style, &font_info);
126 HFONT hfont = CreateFontIndirect(&font_info);
134 LOGFONT font_info;
135 GetObject(GetNativeFont(), sizeof(LOGFONT), &font_info);
137 font_info.lfHeight = AdjustFontSize(-requested_font_size, size_delta);
138 SetLogFontStyle(style, &font_info);
140 HFONT hfont = CreateFontIndirect(&font_info);
211 LOGFONT font_info;
212 GetObject(hfont, sizeof(LOGFONT), &font_info);
213 font_ref_ = CreateHFontRef(CreateFontIndirect(&font_info));
289 LOGFONT font_info;
290 GetObject(base_font, sizeof(LOGFONT), &font_info);
293 font_info.lfHeight =
299 font_info.lfHeight = AdjustFontSize(font_info.lfHeight, 1);
300 base::win::ScopedGDIObject<HFONT> font(CreateFontIndirect(&font_info));
336 LOGFONT font_info;
337 GetObject(hfont_, sizeof(LOGFONT), &font_info);
338 font_name_ = base::UTF16ToUTF8(base::string16(font_info.lfFaceName));
339 if (font_info.lfHeight < 0)
340 requested_font_size_ = -font_info.lfHeight;