Lines Matching defs:name
199 /** Creates a typeface from a name, searching the cache. */
208 static const char* map_css_names(const char* name) {
210 const char* fFrom; // name the caller specified
211 const char* fTo; // "canonical" name we map to
219 if (strcmp(name, gPairs[i].fFrom) == 0) {
223 return name; // no change
278 static bool find_desc_str(CTFontDescriptorRef desc, CFStringRef name, SkString* value) {
279 SkUniqueCFRef<CFStringRef> ref((CFStringRef)CTFontDescriptorCopyAttribute(desc, name));
315 void getStyle(int index, SkFontStyle* style, SkString* name) override {
321 if (name) {
322 if (!find_desc_str(desc, kCTFontStyleNameAttribute, name)) {
323 name->reset();