/external/chromium_org/third_party/skia/src/gpu/ |
GrBitmapTextContext.cpp | 253 const SkGlyph& glyph = glyphCacheProc(cache, &text, fx & fxMask, fy & fyMask); local 255 fx += autokern.adjust(glyph); 257 if (glyph.fWidth) { 258 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(), 259 glyph.getSubXFixed(), 260 glyph.getSubYFixed()), 266 fx += glyph.fAdvanceX; 267 fy += glyph.fAdvanceY; 328 const SkGlyph& glyph = glyphCacheProc(cache, &text, local 331 if (glyph.fWidth) 358 const SkGlyph& glyph = glyphCacheProc(cache, ¤tText, local 380 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 400 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 437 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); local [all...] |
GrDistanceFieldTextContext.cpp | 207 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); local 208 if (NULL == glyph || glyph->fBounds.isEmpty()) { 216 vx += SkIntToFixed(glyph->fBounds.fLeft); 217 vy += SkIntToFixed(glyph->fBounds.fTop); 220 GrFixed width = glyph->fBounds.width(); 221 GrFixed height = glyph->fBounds.height(); 224 if (true || NULL == glyph->fPlot) { 233 if (NULL == glyph->fPlot) { 234 if (fStrike->addGlyphToAtlas(glyph, scaler)) 470 const SkGlyph& glyph = glyphCacheProc(cache, &textPtr, 0, 0); local 493 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 539 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 558 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local [all...] |
/external/harfbuzz_ng/src/ |
hb-font.cc | 52 hb_codepoint_t *glyph, 56 return font->parent->get_glyph (unicode, variation_selector, glyph); 58 *glyph = 0; 65 hb_codepoint_t glyph, 69 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph)); 77 hb_codepoint_t glyph, 81 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph)); 89 hb_codepoint_t glyph, 95 hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y); 108 hb_codepoint_t glyph, [all...] |
hb-ft.cc | 67 hb_codepoint_t *glyph, 75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); 76 return *glyph != 0; 80 *glyph = FT_Get_Char_Index (ft_face, unicode); 81 return *glyph != 0; 87 hb_codepoint_t glyph, 94 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) 103 hb_codepoint_t glyph, 110 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) 121 hb_codepoint_t glyph HB_UNUSED [all...] |
/external/skia/src/gpu/ |
GrBitmapTextContext.cpp | 253 const SkGlyph& glyph = glyphCacheProc(cache, &text, fx & fxMask, fy & fyMask); local 255 fx += autokern.adjust(glyph); 257 if (glyph.fWidth) { 258 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(), 259 glyph.getSubXFixed(), 260 glyph.getSubYFixed()), 266 fx += glyph.fAdvanceX; 267 fy += glyph.fAdvanceY; 328 const SkGlyph& glyph = glyphCacheProc(cache, &text, local 331 if (glyph.fWidth) 358 const SkGlyph& glyph = glyphCacheProc(cache, ¤tText, local 380 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 400 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 437 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); local [all...] |
GrDistanceFieldTextContext.cpp | 207 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); local 208 if (NULL == glyph || glyph->fBounds.isEmpty()) { 216 vx += SkIntToFixed(glyph->fBounds.fLeft); 217 vy += SkIntToFixed(glyph->fBounds.fTop); 220 GrFixed width = glyph->fBounds.width(); 221 GrFixed height = glyph->fBounds.height(); 224 if (true || NULL == glyph->fPlot) { 233 if (NULL == glyph->fPlot) { 234 if (fStrike->addGlyphToAtlas(glyph, scaler)) 470 const SkGlyph& glyph = glyphCacheProc(cache, &textPtr, 0, 0); local 493 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 539 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local 558 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0); local [all...] |
/external/icu/icu4c/source/layout/ |
MultipleSubstSubtables.cpp | 23 LEGlyphID glyph = glyphIterator->getCurrGlyphID(); local 32 if (filter != NULL && filter->accept(glyph)) { 36 le_int32 coverageIndex = getGlyphCoverage(base, glyph, success); 50 if (filter != NULL && ! filter->accept(LE_SET_GLYPH(glyph, substitute))) { 84 newGlyphs[insert] = LE_SET_GLYPH(glyph, substitute);
|
AlternateSubstSubtables.cpp | 21 LEGlyphID glyph = glyphIterator->getCurrGlyphID(); local 22 le_int32 coverageIndex = getGlyphCoverage(base, glyph, success); 33 if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, alternate))) {
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-ft.cc | 67 hb_codepoint_t *glyph, 75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); 76 return *glyph != 0; 80 *glyph = FT_Get_Char_Index (ft_face, unicode); 81 return *glyph != 0; 87 hb_codepoint_t glyph, 94 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) 103 hb_codepoint_t glyph, 110 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) 121 hb_codepoint_t glyph HB_UNUSED [all...] |
/external/icu/icu4c/source/samples/layout/ |
GnomeFontInstance.cpp | 137 void GnomeFontInstance::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const 142 if (glyph >= 0xFFFE) { 148 error = FT_Load_Glyph(fFace, glyph, FT_LOAD_DEFAULT); 154 advance.fX = fFace->glyph->metrics.horiAdvance >> 6; 158 le_bool GnomeFontInstance::getGlyphPoint(LEGlyphID glyph, le_int32 pointNumber, LEPoint &point) const 162 error = FT_Load_Glyph(fFace, glyph, FT_LOAD_DEFAULT); 168 if (pointNumber >= fFace->glyph->outline.n_points) { 172 point.fX = fFace->glyph->outline.points[pointNumber].x >> 6; 173 point.fY = fFace->glyph->outline.points[pointNumber].y >> 6; 185 TTGlyphID glyph = LE_GET_GLYPH(glyphs[in]) local [all...] |
/frameworks/minikin/libs/minikin/ |
MinikinFontFreeType.cpp | 41 bool MinikinFontFreeType::GetGlyph(uint32_t codepoint, uint32_t *glyph) const { 43 *glyph = glyph_index; 83 error = FT_Render_Glyph(mTypeface->glyph, FT_RENDER_MODE_NORMAL); 87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; 91 result->left = mTypeface->glyph->bitmap_left; 92 result->top = mTypeface->glyph->bitmap_top;
|
/external/chromium_org/third_party/skia/src/core/ |
SkScalerContext.cpp | 193 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { 194 unsigned glyphID = glyph.getGlyphID(); 204 // SkDebugf("--- no context for glyph %x\n", glyph.getGlyphID()); 216 const uint16_t glyph = ctx->generateCharToGlyph(uni); local 217 if (glyph) { 219 *glyphID = glyph; 266 return 0; // no more contexts, return missing glyph 292 void SkScalerContext::getAdvance(SkGlyph* glyph) { 294 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE 680 const SkGlyph* glyph = &origGlyph; local [all...] |
/external/skia/src/core/ |
SkScalerContext.cpp | 193 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { 194 unsigned glyphID = glyph.getGlyphID(); 204 // SkDebugf("--- no context for glyph %x\n", glyph.getGlyphID()); 216 const uint16_t glyph = ctx->generateCharToGlyph(uni); local 217 if (glyph) { 219 *glyphID = glyph; 266 return 0; // no more contexts, return missing glyph 292 void SkScalerContext::getAdvance(SkGlyph* glyph) { 294 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE 680 const SkGlyph* glyph = &origGlyph; local [all...] |
/external/chromium_org/third_party/skia/src/ports/ |
SkFontHost_FreeType.cpp | 199 virtual void generateAdvance(SkGlyph* glyph) SK_OVERRIDE; 200 virtual void generateMetrics(SkGlyph* glyph) SK_OVERRIDE; 201 virtual void generateImage(const SkGlyph& glyph) SK_OVERRIDE; 202 virtual void generatePath(const SkGlyph& glyph, SkPath* path) SK_OVERRIDE; 205 virtual SkUnichar generateGlyphToChar(uint16_t glyph) SK_OVERRIDE; 223 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 227 void updateGlyphIfLCD(SkGlyph* glyph); 229 // update FreeType2 glyph slot with glyph emboldened 230 void emboldenIfNeeded(FT_Face face, FT_GlyphSlot glyph); [all...] |
SkScalerContext_win_dw.cpp | 212 // horizontal glyphs and the subpixel flag should not affect glyph shapes. 352 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { 356 glyph->fRsbDelta = 0; 357 glyph->fLsbDelta = 0; 359 glyph->fAdvanceX = 0; 360 glyph->fAdvanceY = 0; 362 uint16_t glyphId = glyph->getGlyphID(); 375 "Could not get gdi compatible glyph metrics."); 403 glyph->fAdvanceX = SkScalarToFixed(vecs[0].fX); 404 glyph->fAdvanceY = SkScalarToFixed(vecs[0].fY) [all...] |
/external/skia/src/ports/ |
SkFontHost_FreeType.cpp | 199 virtual void generateAdvance(SkGlyph* glyph) SK_OVERRIDE; 200 virtual void generateMetrics(SkGlyph* glyph) SK_OVERRIDE; 201 virtual void generateImage(const SkGlyph& glyph) SK_OVERRIDE; 202 virtual void generatePath(const SkGlyph& glyph, SkPath* path) SK_OVERRIDE; 205 virtual SkUnichar generateGlyphToChar(uint16_t glyph) SK_OVERRIDE; 223 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 227 void updateGlyphIfLCD(SkGlyph* glyph); 229 // update FreeType2 glyph slot with glyph emboldened 230 void emboldenIfNeeded(FT_Face face, FT_GlyphSlot glyph); [all...] |
SkScalerContext_win_dw.cpp | 212 // horizontal glyphs and the subpixel flag should not affect glyph shapes. 352 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { 356 glyph->fRsbDelta = 0; 357 glyph->fLsbDelta = 0; 359 glyph->fAdvanceX = 0; 360 glyph->fAdvanceY = 0; 362 uint16_t glyphId = glyph->getGlyphID(); 375 "Could not get gdi compatible glyph metrics."); 399 glyph->fAdvanceX = SkScalarToFixed(vecs[0].fX); 400 glyph->fAdvanceY = SkScalarToFixed(vecs[0].fY) [all...] |
/external/chromium_org/third_party/brotli/src/woff2/ |
glyph.h | 15 // Data model and I/O for glyph data within sfnt format files for the purpose of 27 // Represents a parsed simple or composite glyph. The composite glyph data and 29 // therefore the glyph is valid only so long the data from which it was parsed 31 class Glyph { 33 Glyph() : instructions_size(0), composite_data_size(0) {} 59 // Parses the glyph from the given data. Returns false on parsing failure or 60 // buffer overflow. The glyph is valid only so long the input data pointer is 62 bool ReadGlyph(const uint8_t* data, size_t len, Glyph* glyph); [all...] |
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/table/bitmap/ |
simple_bitmap_glyph.cc | 41 Ptr<SimpleBitmapGlyph> glyph = new SimpleBitmapGlyph(data, format()); local 42 return glyph.Detach();
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
simple_bitmap_glyph.cc | 41 Ptr<SimpleBitmapGlyph> glyph = new SimpleBitmapGlyph(data, format()); local 42 return glyph.Detach();
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
GlyphPage.h | 35 #include "platform/fonts/Glyph.h" 47 // Holds the glyph index and the corresponding SimpleFontData information for a given 50 GlyphData(Glyph g = 0, const SimpleFontData* f = 0) 51 : glyph(g) 55 Glyph glyph; member in struct:WebCore::GlyphData 118 Glyph glyph = m_glyphs[index]; 120 return GlyphData(glyph, m_perGlyphFontData[index]); 121 return GlyphData(glyph, glyph ? m_fontDataForAllGlyphs : 0) [all...] |
SimpleFontData.h | 116 FloatRect boundsForGlyph(Glyph) const; 117 float widthForGlyph(Glyph glyph) const; 118 FloatRect platformBoundsForGlyph(Glyph) const; 119 float platformWidthForGlyph(Glyph) const; 129 Glyph spaceGlyph() const { return m_spaceGlyph; } 130 void setSpaceGlyph(Glyph spaceGlyph) { m_spaceGlyph = spaceGlyph; } 131 Glyph zeroWidthSpaceGlyph() const { return m_zeroWidthSpaceGlyph; } 132 void setZeroWidthSpaceGlyph(Glyph spaceGlyph) { m_zeroWidthSpaceGlyph = spaceGlyph; } 133 bool isZeroWidthSpaceGlyph(Glyph glyph) const { return glyph == m_zeroWidthSpaceGlyph && glyph; [all...] |
/frameworks/base/core/jni/android/graphics/ |
HarfBuzzNGFaceSkia.cpp | 62 uint16_t glyph = codepoint; local 64 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); 66 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth); 79 static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) 93 *glyph = glyph16; 94 return !!*glyph; 97 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) 102 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0); 106 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData [all...] |
/external/chromium_org/third_party/freetype/src/pshinter/ |
pshalgo.c | 442 PSH_Glyph glyph ) 460 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 461 ( dimension == 1 && !glyph->do_vert_hints ) ) 473 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || 474 ( dimension == 1 && glyph->do_vert_snapping ); 519 psh_hint_align( parent, globals, dimension, glyph ); 539 if ( glyph->do_stem_adjust ) 670 PSH_Glyph glyph ) 688 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 689 ( dimension == 1 && !glyph->do_vert_hints ) 2186 PSH_Glyph glyph = &glyphrec; local [all...] |
/external/freetype/src/pshinter/ |
pshalgo.c | 442 PSH_Glyph glyph ) 460 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 461 ( dimension == 1 && !glyph->do_vert_hints ) ) 473 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || 474 ( dimension == 1 && glyph->do_vert_snapping ); 519 psh_hint_align( parent, globals, dimension, glyph ); 539 if ( glyph->do_stem_adjust ) 670 PSH_Glyph glyph ) 688 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 689 ( dimension == 1 && !glyph->do_vert_hints ) 2183 PSH_Glyph glyph = &glyphrec; local [all...] |