Lines Matching refs:dict
230 SkPdfFont* SkPdfFont::fontFromPdfDictionaryOnce(SkPdfNativeDoc* doc, SkPdfFontDictionary* dict) { in fontFromPdfDictionaryOnce() argument
236 switch (doc->mapper()->mapFontDictionary(dict)) { in fontFromPdfDictionaryOnce()
238 return fontFromType0FontDictionary(doc, dict->asType0FontDictionary()); in fontFromPdfDictionaryOnce()
241 return fontFromTrueTypeFontDictionary(doc, dict->asTrueTypeFontDictionary()); in fontFromPdfDictionaryOnce()
244 return fontFromType1FontDictionary(doc, dict->asType1FontDictionary()); in fontFromPdfDictionaryOnce()
247 return fontFromMultiMasterFontDictionary(doc, dict->asMultiMasterFontDictionary()); in fontFromPdfDictionaryOnce()
250 return fontFromType3FontDictionary(doc, dict->asType3FontDictionary()); in fontFromPdfDictionaryOnce()
258 SkPdfFont* SkPdfFont::fontFromPdfDictionary(SkPdfNativeDoc* doc, SkPdfFontDictionary* dict) { in fontFromPdfDictionary() argument
259 if (dict == NULL) { in fontFromPdfDictionary()
263 if (!dict->hasData(SkPdfNativeObject::kFont_Data)) { in fontFromPdfDictionary()
264 dict->setData(fontFromPdfDictionaryOnce(doc, dict), SkPdfNativeObject::kFont_Data); in fontFromPdfDictionary()
266 return (SkPdfFont*)dict->data(SkPdfNativeObject::kFont_Data); in fontFromPdfDictionary()
272 SkPdfType0FontDictionary* dict) { in fontFromType0FontDictionary() argument
273 if (dict == NULL) { in fontFromType0FontDictionary()
277 return new SkPdfType0Font(doc, dict); in fontFromType0FontDictionary()
281 SkPdfType1FontDictionary* dict) { in fontFromType1FontDictionary() argument
282 if (dict == NULL) { in fontFromType1FontDictionary()
286 return new SkPdfType1Font(doc, dict); in fontFromType1FontDictionary()
290 SkPdfType3FontDictionary* dict) { in fontFromType3FontDictionary() argument
291 if (dict == NULL) { in fontFromType3FontDictionary()
297 return new SkPdfType3Font(doc, dict); in fontFromType3FontDictionary()
301 SkPdfTrueTypeFontDictionary* dict) { in fontFromTrueTypeFontDictionary() argument
302 if (dict == NULL) { in fontFromTrueTypeFontDictionary()
306 return new SkPdfTrueTypeFont(doc, dict); in fontFromTrueTypeFontDictionary()
310 SkPdfNativeDoc* doc, SkPdfMultiMasterFontDictionary* dict) { in fontFromMultiMasterFontDictionary() argument
311 if (dict == NULL) { in fontFromMultiMasterFontDictionary()
315 return new SkPdfMultiMasterFont(doc, dict); in fontFromMultiMasterFontDictionary()
427 SkPdfType0Font::SkPdfType0Font(SkPdfNativeDoc* doc, SkPdfType0FontDictionary* dict) { in SkPdfType0Font() argument
428 fBaseFont = fontFromName(doc, dict, dict->BaseFont(doc).c_str()); in SkPdfType0Font()
431 if (dict->has_Encoding()) { in SkPdfType0Font()
432 if (dict->isEncodingAName(doc)) { in SkPdfType0Font()
433 fEncoding = SkPdfEncoding::fromName(dict->getEncodingAsName(doc).c_str()); in SkPdfType0Font()
434 } else if (dict->isEncodingAStream(doc)) { in SkPdfType0Font()
442 if (dict->has_ToUnicode()) { in SkPdfType0Font()
443 fToUnicode = new SkPdfToUnicode(doc, dict->ToUnicode(doc)); in SkPdfType0Font()