Lines Matching refs:get
226 colorspace.get(), kBitmapInfoRGB));
229 colorspace.get(), kBitmapInfoRGB));
235 CTFontManagerCreateFontDescriptorFromData(data.get()));
236 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 16, nullptr));
239 CGContextSetShouldSmoothFonts(noSmoothContext.get(), false);
240 CGContextSetShouldAntialias(noSmoothContext.get(), true);
241 CGContextSetTextDrawingMode(noSmoothContext.get(), kCGTextFill);
242 CGContextSetGrayFillColor(noSmoothContext.get(), 1, 1);
244 CGContextSetShouldSmoothFonts(smoothContext.get(), true);
245 CGContextSetShouldAntialias(smoothContext.get(), true);
246 CGContextSetTextDrawingMode(smoothContext.get(), kCGTextFill);
247 CGContextSetGrayFillColor(smoothContext.get(), 1, 1);
251 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get());
252 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get());
366 CTFontManagerCreateFontDescriptorFromData(cfData.get()));
373 // correct traits. It is necessary to create the CTFont and then get the descriptor
375 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 9, nullptr));
379 SkUniqueCFRef<CTFontDescriptorRef> desc2(CTFontCopyFontDescriptor(ctFont.get()));
385 CTFontDescriptorCopyAttribute(desc2.get(), kCTFontTraitsAttribute));
386 if (!traitsRef || CFGetTypeID(traitsRef.get()) != CFDictionaryGetTypeID()) {
389 CFDictionaryRef fontTraitsDict = static_cast<CFDictionaryRef>(traitsRef.get());