Home | History | Annotate | Download | only in chromium

Lines Matching refs:cgFont

76 bool isLastResortFont(CGFontRef cgFont)
78 NSString* fontName = (NSString*)CGFontCopyPostScriptName(cgFont);
111 if (!font->cgFont()) // Object construction failed.
139 // Cache CGFont representation of the font.
159 // Make sure the CGFont is destroyed before its font container.
167 // Given an NSFont, try to load a representation of that font into the cgFont
173 // * cgFont must be CFRelease()ed by the caller when done.
180 // * cgFont - on output this contains the CGFontRef corresponding to the NSFont
184 void FontPlatformData::loadFont(NSFont* nsFont, float fontSize, NSFont*& outNSFont, CGFontRef& cgFont)
187 cgFont = CTFontCopyGraphicsFont(toCTFontRef(outNSFont), 0);
188 if (OutOfProcessFontLoadingEnabled() && outNSFont && cgFont && isLastResortFont(cgFont)) {
190 CFRelease(cgFont);
191 cgFont = 0;
196 cgFont = m_inMemoryFont->cgFont();
200 CFRetain(cgFont);
205 cgFont = CTFontCopyGraphicsFont(toCTFontRef(outNSFont), 0);