Home
last modified time | relevance | path

Searched refs:fFont (Results 1 - 25 of 43) sorted by relevance

12

/third_party/skia/gm/
H A Ddrawglyphs.cpp24 fFont = SkFont(fTypeface);
25 fFont.setSubpixel(true);
26 fFont.setSize(18);
28 fGlyphCount = fFont.countText(gText, txtLen, SkTextEncoding::kUTF8);
31 fFont.textToGlyphs(gText, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphCount);
34 fFont.getPos(fGlyphs.begin(), fGlyphCount, fPositions.begin());
59 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 100}, fFont,
62 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 120}, fFont,
69 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 640}, fFont,
73 {50 + fLength / 2, 160 + fRadius}, fFont, SkPain
80 SkFont fFont; global() member in DrawGlyphsGM
[all...]
H A Dvariedtext.cpp60 fFont.setEdging(fLCD ? SkFont::Edging::kSubpixelAntiAlias : SkFont::Edging::kAntiAlias);
94 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]);
95 fFont.setSize(fPtSizes[i]);
97 fFont.measureText(fStrings[i].c_str(), fStrings[i].size(), SkTextEncoding::kUTF8, &r);
120 fFont.setSize(fPtSizes[i]);
121 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]);
127 0, 0, fFont, fPaint);
154 SkFont fFont; member in VariedTextGM
/third_party/skia/modules/skshaper/src/
H A DSkShaper.cpp121 , fFont(font) in Make()
122 , fFallbackFont(fFont) in Make()
128 fFont.setTypeface(font.refTypefaceOrDefault()); in Make()
142 if (fFont.unicharToGlyph(u)) { in Make()
143 fCurrentFont = &fFont; in Make()
157 fCurrentFont = &fFont; in Make()
166 if (fCurrentFont->getTypeface() != fFont.getTypeface() && fFont.unicharToGlyph(u)) { in Make()
200 SkFont fFont; in Make() member in SkiaRsText::final
216 , fFont(fon in Make()
295 RSFont fFont; Make() member in SkiaRsText::final
[all...]
H A DSkShaper_harfbuzz.cpp646 : fUtf8Range(utf8Range), fFont(font), fLevel(level)
651 SkFont fFont; member
661 : fUtf8Range(utf8Range), fFont(font), fLevel(level),
666 RSFont fFont; member
728 run.fFont,
742 run.fFont,
1344 runs[current.fRunIndex].fFont.getMetrics(&metrics);
1347 runs[current.fRunIndex].fFont.GetMetrics(&metrics);
1394 sub.run.fFont,
1447 run.fFont,
[all...]
/third_party/skia/bench/
H A DTextBlobBench.cpp30 fFont.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle()));
31 fFont.setSubpixel(true);
36 fGlyphs.setCount(fFont.countText(text, strlen(text), SkTextEncoding::kUTF8));
39 fFont.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphs.count());
40 fFont.getXPos(&fGlyphs[0], fGlyphs.count(), fXPos.begin());
45 fBuilder.allocRunPosH(fFont, fGlyphs.count(), 10, nullptr); in makeBlob()
53 SkFont fFont; member in SkTextBlobBench
H A DCmapBench.cpp24 const SkFont& fFont; member
37 r.fFont.textToGlyphs(r.fText, r.fCount*4, SkTextEncoding::kUTF32, glyphs, NGLYPHS); in textToGlyphs_proc()
45 SkTypeface* face = r.fFont.getTypefaceOrDefault(); in charsToGlyphs_proc()
72 SkFont fFont; member in CMAPBench
89 fFont.setTypeface(SkTypeface::MakeDefault()); in CMAPBench()
102 fProc({fCache, loops, fFont, fText, fCount});
H A DFontCacheBench.cpp151 SkFont fFont; member in FontPathBench
171 fFont.setSize(32);
182 fFont.getPath(fGlyphs[i], &path);
185 fFont.getPaths(fGlyphs, SK_ARRAY_COUNT(fGlyphs),
/third_party/skia/modules/skottie/src/text/
H A DSkottieShaper.cpp57 , fFont(fDesc.fTypeface, fDesc.fTextSize) in BlobMaker()
59 fFont.setHinting(SkFontHinting::kNone); in BlobMaker()
60 fFont.setSubpixel(true); in BlobMaker()
61 fFont.setLinearMetrics(true); in BlobMaker()
62 fFont.setBaselineSnap(false); in BlobMaker()
63 fFont.setEdging(SkFont::Edging::kAntiAlias); in BlobMaker()
83 info.fFont.getMetrics(&metrics);
99 fLineRuns.push_back({info.fFont, info.glyphCount});
246 fShaper->shape(start, SkToSizeT(end - start), fFont, shape_ltr, shape_width, this); in shapeLine()
252 SkFont fFont; member
340 SkFont fFont; global() member in skottie::__anon18587::final
[all...]
/third_party/icu/icu4c/source/layoutex/layout/
H A DParagraphLayout.h332 const LEFontInstance *fFont; member in ParagraphLayout::VisualRun
682 return fFont; in getFont()
712 return fFont->getAscent(); in getAscent()
717 return fFont->getDescent(); in getDescent()
722 return fFont->getLeading(); in getLeading()
726 : UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), fGlyphToCharMap(NULL) in VisualRun()
732 : UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), fGlyphToCharMap(NULL) in VisualRun()
739 : fFont(font), fDirection(direction), fGlyphCount(glyphCount), in VisualRun()
/third_party/skia/modules/skshaper/include/
H A DSkShaper.h150 : TrivialRunIterator(utf8Bytes), fFont(font) {} in TrivialFontRunIterator()
151 const SkFont& currentFont() const override { return fFont; }
153 SkFont fFont; member in SkiaRsText::SkShaper::TrivialFontRunIterator
167 : TrivialRunIterator(utf8Bytes), fFont(font) {} in TrivialFontRunIterator()
168 const RSFont& currentFont() const override { return fFont; }
170 RSFont fFont; member in SkiaRsText::SkShaper::TrivialFontRunIterator
238 const SkFont& fFont; member
240 const RSFont& fFont;
/third_party/skia/experimental/sktext/src/
H A DLogicalRun.cpp9 : fFont(info.fFont) in LogicalRun()
10 , fTextMetrics(info.fFont) in LogicalRun()
H A DVisualRun.h18 : fFont(font) in VisualRun()
19 , fTextMetrics(TextMetrics(fFont)) in VisualRun()
86 SkFont fFont; member in skia::text::VisualRun
H A DLogicalRun.h19 fFont.getBounds(fGlyphs.data(), fGlyphs.size(), fBounds.data(), nullptr); in commit()
68 SkFont fFont; member in skia::text::LogicalRun
/third_party/icu/icu4c/source/samples/layout/
H A DGDIFontInstance.cpp111 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
160 fFont = CreateFontIndirect(&lf); in GDIFontInstance()
162 if (fFont == NULL) { in GDIFontInstance()
167 SelectObject(hdc, fFont); in GDIFontInstance()
196 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
248 fFont = CreateFontIndirectA(&lf); in GDIFontInstance()
250 if (fFont == NULL) { in GDIFontInstance()
255 SelectObject(hdc, fFont); in GDIFontInstance()
314 if (fFont != NULL) { in ~GDIFontInstance()
316 DeleteObject(fFont); in ~GDIFontInstance()
[all...]
H A DGDIFontInstance.h61 HFONT fFont; member in GDIFontInstance
114 return fFont; in getFont()
/third_party/skia/third_party/externals/icu/source/samples/layout/
H A DGDIFontInstance.cpp111 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
160 fFont = CreateFontIndirect(&lf); in GDIFontInstance()
162 if (fFont == NULL) { in GDIFontInstance()
167 SelectObject(hdc, fFont); in GDIFontInstance()
196 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
248 fFont = CreateFontIndirectA(&lf); in GDIFontInstance()
250 if (fFont == NULL) { in GDIFontInstance()
255 SelectObject(hdc, fFont); in GDIFontInstance()
314 if (fFont != NULL) { in ~GDIFontInstance()
316 DeleteObject(fFont); in ~GDIFontInstance()
[all...]
H A DGDIFontInstance.h61 HFONT fFont; member in GDIFontInstance
114 return fFont; in getFont()
/third_party/skia/tools/viewer/
H A DViewer.cpp574 fFont.setHinting(SkFontHinting::kNone); in fPerspectiveMode()
576 switch (fFont.getHinting()) { in fPerspectiveMode()
578 fFont.setHinting(SkFontHinting::kSlight); in fPerspectiveMode()
581 fFont.setHinting(SkFontHinting::kNormal); in fPerspectiveMode()
584 fFont.setHinting(SkFontHinting::kFull); in fPerspectiveMode()
587 fFont.setHinting(SkFontHinting::kNone); in fPerspectiveMode()
640 fFont.setEdging(SkFont::Edging::kAlias); in fPerspectiveMode()
642 switch (fFont.getEdging()) { in fPerspectiveMode()
644 fFont.setEdging(SkFont::Edging::kAntiAlias); in fPerspectiveMode()
647 fFont in fPerspectiveMode()
1455 SkFont* fFont; global() member in OveridePaintFilterCanvas
[all...]
/third_party/skia/modules/skparagraph/include/
H A DParagraph.h171 : fFont(font), fTextRange(textRange) { } in FontInfo()
174 SkFont fFont; member
180 : fFont(font), fTextRange(textRange) { } in FontInfo()
183 RSFont fFont; member
/third_party/skia/modules/skparagraph/src/
H A DRun.cpp204 , fFont(info.fFont) in scaleFontWithCompressionConfig()
228 info.fFont.getMetrics(&fFontMetrics); in scaleFontWithCompressionConfig()
230 info.fFont.GetMetrics(&fFontMetrics); in scaleFontWithCompressionConfig()
234 auto decompressFont = info.fFont; in scaleFontWithCompressionConfig()
259 const auto runHeight = fHeightMultiplier * fFont.getSize(); in scaleFontWithCompressionConfig()
261 const auto runHeight = fHeightMultiplier * fFont.GetSize(); in scaleFontWithCompressionConfig()
285 const auto& blobBuffer = builder.allocRunPos(fFont, SkToInt(size)); in scaleFontWithCompressionConfig()
303 const auto& blobBuffer = builder.AllocRunPos(fFont, SkToInt(size)); in scaleFontWithCompressionConfig()
328 auto& blobBuffer = builder.AllocRunRSXform(fFont, SkToIn in scaleFontWithCompressionConfig()
[all...]
/third_party/skia/src/core/
H A DSkTextBlobPriv.h67 : fFont(font) in RunRecord()
89 return fFont; in font()
169 SkFont fFont; member in SkTextBlob::RunRecord
H A DSkGlyphRun.h44 const SkFont& font() const { return fFont; } in font()
60 SkFont fFont; member in SkGlyphRun
/third_party/skia/modules/skplaintexteditor/include/
H A Deditor.h34 const SkFont& font() const { return fFont; } in font()
119 SkFont fFont; member in SkPlainTextEditor::Editor
/third_party/skia/modules/skplaintexteditor/src/
H A Dshape.cpp102 info.fFont.getMetrics(&metrics); in runInfo()
116 const auto& runBuffer = fBuilder.allocRunTextPos(info.fFont, glyphCount, utf8RangeSize); in runBuffer()
148 info.fFont); in commitRunBuffer()
/third_party/skia/src/ports/
H A DSkFontHost_win.cpp216 , fFont(::CreateFontIndirect(&lf)) in SkAutoHDC()
217 , fSavefont((HFONT)::SelectObject(fHdc, fFont)) in SkAutoHDC()
224 if (fFont) { in ~SkAutoHDC()
225 ::DeleteObject(fFont); in ~SkAutoHDC()
231 HFONT fFont; member in SkAutoHDC
458 fFont = font; in init()
468 HFONT fFont{0};
488 fSavefont = (HFONT)SelectObject(fDC, fFont); in draw()
595 HFONT fFont; member in SkScalerContext_GDI
639 , fFont( in SkScalerContext_GDI()
[all...]

Completed in 22 milliseconds

12