Lines Matching defs:font
82 SkFont& font = *reinterpret_cast<SkFont*>(font_data);
84 *glyph = font.unicharToGlyph(unicode);
86 RSFont& font = *reinterpret_cast<RSFont*>(font_data);
88 *glyph = font.UnicharToGlyph(unicode);
109 SkFont& font = *reinterpret_cast<SkFont*>(font_data);
111 RSFont& font = *reinterpret_cast<RSFont*>(font_data);
123 font.textToGlyphs(unicode.get(), count * sizeof(SkUnichar), SkTextEncoding::kUTF32,
126 font.TextToGlyphs(unicode.get(), count * sizeof(SkUnichar), RSDrawing::TextEncoding::UTF32,
145 SkFont& font = *reinterpret_cast<SkFont*>(font_data);
147 RSFont& font = *reinterpret_cast<RSFont*>(font_data);
154 font.getWidths(&skGlyph, 1, &advance);
155 if (!font.isSubpixel()) {
159 font.GetWidths(&skGlyph, 1, &advance);
160 if (!font.IsSubpixel()) {
176 SkFont& font = *reinterpret_cast<SkFont*>(font_data);
178 RSFont& font = *reinterpret_cast<RSFont*>(font_data);
190 font.getWidths(glyph.get(), count, advance.get());
192 font.GetWidths(glyph.get(), count, advance.get());
196 if (!font.isSubpixel()) {
198 if (!font.IsSubpixel()) {
213 // fallback mark positioning, i.e. the situation when the font does not have
224 SkFont& font = *reinterpret_cast<SkFont*>(font_data);
226 RSFont& font = *reinterpret_cast<RSFont*>(font_data);
234 font.getWidths(&skGlyph, 1, nullptr, &sk_bounds);
235 if (!font.isSubpixel()) {
248 font.GetWidths(&skGlyph, 1, nullptr, &bounds);
249 if (!font.IsSubpixel()) {
442 HBFont create_sub_hb_font(const SkFont& font, const HBFont& typefaceFont) {
446 SkASSERT(dataId == font.getTypeface());
449 // Creating a sub font means that non-available functions
453 reinterpret_cast<void *>(new SkFont(font)),
455 int scale = skhb_position(font.getSize());
461 HBFont create_sub_hb_font(const RSFont& font, const HBFont& typefaceFont) {
462 // Creating a sub font means that non-available functions
466 reinterpret_cast<void *>(std::make_unique<RSFont>(font).release()),
468 int scale = skhb_position(font.GetSize());
644 ShapedRun(SkShaper::RunHandler::Range utf8Range, const SkFont& font, SkBidiIterator::Level level,
646 : fUtf8Range(utf8Range), fFont(font), fLevel(level)
659 ShapedRun(SkShaper::RunHandler::Range utf8Range, const RSFont& font, SkBidiIterator::Level level,
661 : fUtf8Range(utf8Range), fFont(font), fLevel(level),
999 std::unique_ptr<FontRunIterator> font(
1003 std::unique_ptr<FontRunIterator> font(
1007 if (!font) {
1011 this->shape(utf8, utf8Bytes, *font, *bidi, *script, *language, width, handler);
1015 FontRunIterator& font,
1022 this->shape(utf8, utf8Bytes, font, bidi, script, language, nullptr, 0, width, handler);
1026 FontRunIterator& font,
1036 runSegmenter.insert(&font, 3); // The font iterator is always run last in case of tie.
1041 this->wrap(utf8, utf8Bytes, bidi, language, script, font, runSegmenter,
1049 const FontRunIterator& font,
1085 bidi, language, script, font,
1145 font.currentFont(), bidi.currentLevel(),
1152 bidi, language, script, font,
1206 const FontRunIterator& font,
1231 bidi, language, script, font,
1423 const FontRunIterator& font,
1440 bidi, language, script, font,
1512 const FontRunIterator& font,
1520 font.currentFont(), bidi.currentLevel(), nullptr, 0);
1568 uint32_t dataId = font.currentFont().getTypeface()->uniqueID();
1570 uint32_t dataId = const_cast<RSFont&>(font.currentFont()).GetTypeface()->GetUniqueID();
1575 HBFont typefaceFont(create_typeface_hb_font(*font.currentFont().getTypeface()));
1577 HBFont typefaceFont(create_typeface_hb_font(*const_cast<RSFont&>(font.currentFont()).GetTypeface()));
1581 hbFont = create_sub_hb_font(font.currentFont(), *typefaceFontCached);
1620 font.currentFont(), bidi.currentLevel(),
1654 glyph.fHasVisual = !glyphBounds[i].isEmpty(); //!font->currentTypeface()->glyphBoundsAreZero(glyph.fID);
1656 glyph.fHasVisual = !glyphBounds[i].IsEmpty(); //!font->currentTypeface()->glyphBoundsAreZero(glyph.fID);