Searched defs:typeface (Results 1 - 25 of 71) sorted by relevance

123

/external/skia/include/atlastext/
H A DSkAtlasTextFont.h17 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { argument
18 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size));
21 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont
28 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) argument
29 : fTypeface(std::move(typeface)), fSize(size) {}
/external/skqp/include/atlastext/
H A DSkAtlasTextFont.h17 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { argument
18 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size));
21 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont
28 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) argument
29 : fTypeface(std::move(typeface)), fSize(size) {}
/external/pdfium/fxjs/xfa/
H A Dcjx_font.cpp21 void CJX_Font::typeface(CFXJSE_Value* pValue, function in class:CJX_Font
/external/skia/gm/
H A Datlastext.cpp27 uint32_t color, sk_sp<SkTypeface> typeface, float size) {
31 auto font = SkAtlasTextFont::Make(typeface, size);
34 typeface->charsToGlyphs(text.c_str(), SkTypeface::Encoding::kUTF8_Encoding, glyphs.get(), cnt);
39 paint.setTypeface(std::move(typeface));
114 for (const auto& typeface : fTypefaces) {
135 draw_string(fTarget.get(), text, drawX, drawY, color, typeface, size);
26 draw_string(SkAtlasTextTarget* target, const SkString& text, SkScalar x, SkScalar y, uint32_t color, sk_sp<SkTypeface> typeface, float size) argument
H A Dcoloremoji.cpp59 sk_sp<SkTypeface> typeface; member in struct:skiagm::ColorEmojiGM::EmojiFont
63 emojiFont.typeface = sk_tool_utils::emoji_typeface();
80 paint.setTypeface(emojiFont.typeface);
/external/skia/src/gpu/
H A DGrPathRendering.cpp50 GlyphGenerator(const SkTypeface& typeface, const SkScalerContextEffects& effects, argument
52 : fScalerContext(typeface.createScalerContext(effects, &desc))
75 sk_sp<GrPathRange> GrPathRendering::createGlyphs(const SkTypeface* typeface, argument
79 if (nullptr == typeface) {
80 typeface = SkTypeface::GetDefaultTypeface();
81 SkASSERT(nullptr != typeface);
85 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, effects, *desc));
91 SkScalerContext::MakeDescriptorForPaths(typeface->uniqueID(), &ad);
96 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, noEffects, *genericDesc));
/external/skia/src/pdf/
H A DSkPDFFont.h34 /** Returns the typeface represented by this class. Returns nullptr for the
35 * default typeface.
37 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont
78 /** Get the font resource for the passed typeface and glyphID. The
83 * @param typeface The typeface to find, not nullptr.
87 SkTypeface* typeface,
91 * @param typeface can not be nullptr.
92 * @return nullptr only when typeface is bad.
94 static const SkAdvancedTypefaceMetrics* GetMetrics(SkTypeface* typeface,
[all...]
/external/skia/src/ports/
H A DSkFontHost_FreeType_common.h43 SkScalerContext_FreeType_Base(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, argument
45 : INHERITED(std::move(typeface), effects, desc)
H A DSkFontMgr_custom.cpp86 void SkFontStyleSet_Custom::appendTypeface(sk_sp<SkTypeface_Custom> typeface) { argument
87 fStyles.emplace_back(std::move(typeface));
H A DSkFontMgr_FontConfigInterface.cpp105 Result(Request* request, SkTypeface* typeface) argument
107 , fFace(SkSafeRef(typeface)) {}
286 // Check if a typeface with this FontIdentity is already in the FontIdentity cache.
/external/skqp/gm/
H A Datlastext.cpp27 uint32_t color, sk_sp<SkTypeface> typeface, float size) {
31 auto font = SkAtlasTextFont::Make(typeface, size);
34 typeface->charsToGlyphs(text.c_str(), SkTypeface::Encoding::kUTF8_Encoding, glyphs.get(), cnt);
39 paint.setTypeface(std::move(typeface));
111 for (const auto& typeface : fTypefaces) {
132 draw_string(fTarget.get(), text, drawX, drawY, color, typeface, size);
26 draw_string(SkAtlasTextTarget* target, const SkString& text, SkScalar x, SkScalar y, uint32_t color, sk_sp<SkTypeface> typeface, float size) argument
H A Dcoloremoji.cpp59 sk_sp<SkTypeface> typeface; member in struct:skiagm::ColorEmojiGM::EmojiFont
63 emojiFont.typeface = sk_tool_utils::emoji_typeface();
80 paint.setTypeface(emojiFont.typeface);
/external/skqp/src/gpu/
H A DGrPathRendering.cpp50 GlyphGenerator(const SkTypeface& typeface, const SkScalerContextEffects& effects, argument
52 : fScalerContext(typeface.createScalerContext(effects, &desc))
75 sk_sp<GrPathRange> GrPathRendering::createGlyphs(const SkTypeface* typeface, argument
79 if (nullptr == typeface) {
80 typeface = SkTypeface::GetDefaultTypeface();
81 SkASSERT(nullptr != typeface);
85 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, effects, *desc));
91 rec.fFontID = typeface->uniqueID();
106 sk_sp<GlyphGenerator> generator(new GlyphGenerator(*typeface, noEffects, *genericDesc));
/external/skqp/src/pdf/
H A DSkPDFFont.h34 /** Returns the typeface represented by this class. Returns nullptr for the
35 * default typeface.
37 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont
78 /** Get the font resource for the passed typeface and glyphID. The
83 * @param typeface The typeface to find, not nullptr.
87 SkTypeface* typeface,
91 * @param typeface can not be nullptr.
92 * @return nullptr only when typeface is bad.
94 static const SkAdvancedTypefaceMetrics* GetMetrics(SkTypeface* typeface,
[all...]
/external/skqp/src/ports/
H A DSkFontHost_FreeType_common.h43 SkScalerContext_FreeType_Base(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, argument
45 : INHERITED(std::move(typeface), effects, desc)
H A DSkFontMgr_custom.cpp86 void SkFontStyleSet_Custom::appendTypeface(sk_sp<SkTypeface_Custom> typeface) { argument
87 fStyles.emplace_back(std::move(typeface));
/external/skia/samplecode/
H A DSampleChineseFling.cpp22 static void make_paint(SkPaint* paint, sk_sp<SkTypeface> typeface) { argument
27 paint->setTypeface(typeface);
/external/skia/tests/
H A DTypefaceTest.cpp114 // TODO: if axes are set and the back-end doesn't support them, should we create the typeface?
115 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local
117 if (!typeface) {
122 int count = typeface->getVariationDesignPosition(nullptr, 0);
129 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead));
151 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local
152 if (!typeface) {
158 int count = typeface->getVariationDesignPosition(nullptr, 0);
165 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead));
/external/skqp/samplecode/
H A DSampleChineseFling.cpp22 static void make_paint(SkPaint* paint, sk_sp<SkTypeface> typeface) { argument
27 paint->setTypeface(typeface);
/external/skqp/tests/
H A DTypefaceTest.cpp114 // TODO: if axes are set and the back-end doesn't support them, should we create the typeface?
115 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local
117 if (!typeface) {
122 int count = typeface->getVariationDesignPosition(nullptr, 0);
129 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead));
151 sk_sp<SkTypeface> typeface = fm->makeFromStream(std::move(distortable), params); local
152 if (!typeface) {
158 int count = typeface->getVariationDesignPosition(nullptr, 0);
165 count = typeface->getVariationDesignPosition(positionRead, SK_ARRAY_COUNT(positionRead));
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/env/
H A DBorderedText.java73 public void setTypeface(Typeface typeface) { argument
74 interiorPaint.setTypeface(typeface);
75 exteriorPaint.setTypeface(typeface);
/external/skia/src/core/
H A DSkGlyphCache.h27 This class represents a strike: a specific combination of typeface, size, matrix, etc., and
136 static SkGlyphCache* DetachCache(SkTypeface* typeface, const SkScalerContextEffects& effects, argument
138 return VisitCache(typeface, effects, desc, DetachProc, nullptr);
262 SkAutoGlyphCache(SkTypeface* typeface, const SkScalerContextEffects& effects, argument
264 : INHERITED(SkGlyphCache::DetachCache(typeface, effects, desc))
/external/skia/src/sfnt/
H A DSkOTUtils.cpp167 SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(const SkTypeface& typeface) { argument
169 size_t nameTableSize = typeface.getTableSize(nameTag);
174 size_t copied = typeface.getTableData(nameTag, 0, nameTableSize, nameTableData.get());
/external/skia/tools/debugger/
H A DSkJsonWriteBuffer.cpp153 void SkJsonWriteBuffer::writeTypeface(SkTypeface* typeface) { argument
155 this->append("typeface", Json::Value());
/external/skia/tools/shape/
H A Dusing_skia_and_harfbuzz.cpp207 sk_sp<SkTypeface> typeface; local
209 typeface = SkTypeface::MakeFromFile(font_file.c_str(), 0 /* index */);
211 SkShaper shaper(typeface);

Completed in 531 milliseconds

123