Lines Matching refs:logFont
67 LOGFONT& logFont = *static_cast<LOGFONT*>(malloc(sizeof(LOGFONT)));
69 TTGetNewFontName(&m_fontReference, logFont.lfFaceName, LF_FACESIZE, 0, 0);
71 memcpy(logFont.lfFaceName, m_name.charactersWithNullTermination(), sizeof(logFont.lfFaceName[0]) * min(static_cast<size_t>(LF_FACESIZE), 1 + m_name.length()));
73 logFont.lfHeight = -size;
75 logFont.lfHeight *= 32;
76 logFont.lfWidth = 0;
77 logFont.lfEscapement = 0;
78 logFont.lfOrientation = 0;
79 logFont.lfUnderline = false;
80 logFont.lfStrikeOut = false;
81 logFont.lfCharSet = DEFAULT_CHARSET;
82 logFont.lfOutPrecision = OUT_TT_ONLY_PRECIS;
83 logFont.lfQuality = CLEARTYPE_QUALITY;
84 logFont.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
85 logFont.lfItalic = italic;
86 logFont.lfWeight = bold ? 700 : 400;
88 HFONT hfont = CreateFontIndirect(&logFont);
90 RetainPtr<CGFontRef> cgFont(AdoptCF, CGFontCreateWithPlatformFont(&logFont));