/external/freetype/src/base/ |
D | ftglyph.c | 61 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_init() local 63 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_init() 72 glyph->left = slot->bitmap_left; in ft_bitmap_glyph_init() 73 glyph->top = slot->bitmap_top; in ft_bitmap_glyph_init() 78 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init() 83 FT_Bitmap_New( &glyph->bitmap ); in ft_bitmap_glyph_init() 84 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in ft_bitmap_glyph_init() 111 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_done() local 112 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_done() 115 FT_Bitmap_Done( library, &glyph->bitmap ); in ft_bitmap_glyph_done() [all …]
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType_common.cpp | 59 static void copyFT2LCD16(const SkGlyph& glyph, const FT_Bitmap& bitmap, in copyFT2LCD16() argument 63 SkASSERT(3 * glyph.fHeight == bitmap.rows); in copyFT2LCD16() 65 SkASSERT(glyph.fHeight == bitmap.rows); in copyFT2LCD16() 68 uint16_t* dst = reinterpret_cast<uint16_t*>(glyph.fImage); in copyFT2LCD16() 69 const size_t dstRB = glyph.rowBytes(); in copyFT2LCD16() 70 const int width = glyph.fWidth; in copyFT2LCD16() 75 for (int y = 0; y < glyph.fHeight; ++y) { in copyFT2LCD16() 84 for (int y = 0; y < glyph.fHeight; ++y) { in copyFT2LCD16() 93 SkASSERT(lcdIsVert || (glyph.fWidth * 3 == bitmap.width)); in copyFT2LCD16() 94 for (int y = 0; y < glyph.fHeight; y++) { in copyFT2LCD16() [all …]
|
D | SkFontHost_ascender.cpp | 34 virtual void generateMetrics(SkGlyph* glyph); 35 virtual void generateImage(const SkGlyph& glyph); 36 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 122 void SkScalerContext_Ascender::generateMetrics(SkGlyph* glyph) in generateMetrics() argument 124 glyph->fRsbDelta = 0; in generateMetrics() 125 glyph->fLsbDelta = 0; in generateMetrics() 130 int adv = aca_Get_Adv_Width(fHandle, glyph->getGlyphID()); in generateMetrics() 134 aca_Rasterize(glyph->getGlyphID(), fHandle, &rec, &topLeft); in generateMetrics() 139 glyph->fWidth = 0; in generateMetrics() 140 glyph->fHeight = 0; in generateMetrics() [all …]
|
D | SkFontHost_FreeType.cpp | 174 virtual void generateAdvance(SkGlyph* glyph) SK_OVERRIDE; 175 virtual void generateMetrics(SkGlyph* glyph) SK_OVERRIDE; 176 virtual void generateImage(const SkGlyph& glyph) SK_OVERRIDE; 177 virtual void generatePath(const SkGlyph& glyph, SkPath* path) SK_OVERRIDE; 180 virtual SkUnichar generateGlyphToChar(uint16_t glyph) SK_OVERRIDE; 193 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 196 void updateGlyphIfLCD(SkGlyph* glyph); 359 advances[i] = face->glyph->advance.x; in getAdvances() 386 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox() 938 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument [all …]
|
D | SkFontHost_mac_atsui.cpp | 82 virtual void generateAdvance(SkGlyph* glyph); 83 virtual void generateMetrics(SkGlyph* glyph); 84 virtual void generateImage(const SkGlyph& glyph); 85 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 200 ATSGlyphRef glyph; in generateCharToGlyph() local 203 glyph = layoutPtr->glyphID; in generateCharToGlyph() 205 return glyph; in generateCharToGlyph() 208 static void set_glyph_metrics_on_error(SkGlyph* glyph) { in set_glyph_metrics_on_error() argument 209 glyph->fRsbDelta = 0; in set_glyph_metrics_on_error() 210 glyph->fLsbDelta = 0; in set_glyph_metrics_on_error() [all …]
|
D | SkFontHost_win.cpp | 79 static void apply_outset(SkGlyph* glyph, const SkIRect& outset) { in apply_outset() argument 85 glyph->fLeft -= outset.fLeft; in apply_outset() 86 glyph->fTop -= outset.fTop; in apply_outset() 87 glyph->fWidth += outset.fLeft + outset.fRight; in apply_outset() 88 glyph->fHeight += outset.fTop + outset.fBottom; in apply_outset() 389 SkAutoTArray<WORD> glyph(count); in populate_glyph_to_unicode() local 393 GetGlyphIndicesW(fontHdc, chars.get(), count, glyph.get(), in populate_glyph_to_unicode() 403 if (glyph[j] != 0xffff && glyph[j] < glyphCount && in populate_glyph_to_unicode() 404 (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode() 405 (*glyphToUnicode)[glyph[j]] = chars[j]; in populate_glyph_to_unicode() [all …]
|
D | SkFontHost_win_dw.cpp | 108 const void* DWriteOffscreen::draw(const SkGlyph& glyph, bool isBW) { in draw() argument 112 if (fWidth < glyph.fWidth || fHeight < glyph.fHeight) { in draw() 113 fWidth = SkMax32(fWidth, glyph.fWidth); in draw() 114 fHeight = SkMax32(fHeight, glyph.fHeight); in draw() 126 fXform.dx = SkFixedToFloat(glyph.getSubXFixed()); in draw() 127 fXform.dy = SkFixedToFloat(glyph.getSubYFixed()); in draw() 131 UINT16 index = glyph.getGlyphID(); in draw() 170 bbox.left = glyph.fLeft; in draw() 171 bbox.top = glyph.fTop; in draw() 172 bbox.right = glyph.fLeft + glyph.fWidth; in draw() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-font-private.hh | 46 HB_FONT_FUNC_IMPLEMENT (glyph) \ 214 hb_codepoint_t *glyph) in get_glyph() 216 *glyph = 0; in get_glyph() 217 return klass->get.glyph (this, user_data, in get_glyph() 218 unicode, variation_selector, glyph, in get_glyph() 219 klass->user_data.glyph); in get_glyph() 222 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance() 225 glyph, in get_glyph_h_advance() 229 inline hb_position_t get_glyph_v_advance (hb_codepoint_t glyph) in get_glyph_v_advance() 232 glyph, in get_glyph_v_advance() [all …]
|
D | hb-ft.cc | 67 hb_codepoint_t *glyph, in hb_ft_get_glyph() argument 75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph() 76 if (*glyph) in hb_ft_get_glyph() 81 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph() 82 return *glyph != 0; in hb_ft_get_glyph() 88 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument 95 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance() 104 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument 111 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance() 122 hb_codepoint_t glyph HB_UNUSED, in hb_ft_get_glyph_h_origin() [all …]
|
D | hb-font.cc | 54 hb_codepoint_t *glyph, in hb_font_get_glyph_nil() argument 58 return font->parent->get_glyph (unicode, variation_selector, glyph); in hb_font_get_glyph_nil() 60 *glyph = 0; in hb_font_get_glyph_nil() 67 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_nil() argument 71 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph)); in hb_font_get_glyph_h_advance_nil() 79 hb_codepoint_t glyph, in hb_font_get_glyph_v_advance_nil() argument 83 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph)); in hb_font_get_glyph_v_advance_nil() 91 hb_codepoint_t glyph, in hb_font_get_glyph_h_origin_nil() argument 97 hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y); in hb_font_get_glyph_h_origin_nil() 110 hb_codepoint_t glyph, in hb_font_get_glyph_v_origin_nil() argument [all …]
|
D | hb-font.h | 169 hb_codepoint_t *glyph, 174 hb_codepoint_t glyph, 180 hb_codepoint_t glyph, 194 hb_codepoint_t glyph, 198 hb_codepoint_t glyph, unsigned int point_index, 204 hb_codepoint_t glyph, 209 hb_codepoint_t *glyph, 271 hb_codepoint_t *glyph); 275 hb_codepoint_t glyph); 278 hb_codepoint_t glyph); [all …]
|
/external/skia/legacy/src/ports/ |
D | SkFontHost_FreeType.cpp | 161 virtual void generateAdvance(SkGlyph* glyph); 162 virtual void generateMetrics(SkGlyph* glyph); 163 virtual void generateImage(const SkGlyph& glyph); 164 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 167 virtual SkUnichar generateGlyphToChar(uint16_t glyph); 181 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox, 183 void updateGlyphIfLCD(SkGlyph* glyph); 345 advances[i] = face->glyph->advance.x; in getAdvances() 372 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox() 932 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument [all …]
|
D | SkFontHost_ascender.cpp | 34 virtual void generateMetrics(SkGlyph* glyph); 35 virtual void generateImage(const SkGlyph& glyph); 36 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 122 void SkScalerContext_Ascender::generateMetrics(SkGlyph* glyph) in generateMetrics() argument 124 glyph->fRsbDelta = 0; in generateMetrics() 125 glyph->fLsbDelta = 0; in generateMetrics() 130 int adv = aca_Get_Adv_Width(fHandle, glyph->getGlyphID()); in generateMetrics() 134 aca_Rasterize(glyph->getGlyphID(), fHandle, &rec, &topLeft); in generateMetrics() 139 glyph->fWidth = 0; in generateMetrics() 140 glyph->fHeight = 0; in generateMetrics() [all …]
|
D | SkFontHost_win.cpp | 250 SkAutoTArray<WORD> glyph(count); in populate_glyph_to_unicode() local 254 GetGlyphIndicesW(fontHdc, chars.get(), count, glyph.get(), in populate_glyph_to_unicode() 264 if (glyph[j] != 0xffff && glyph[j] < glyphCount && in populate_glyph_to_unicode() 265 (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode() 266 (*glyphToUnicode)[glyph[j]] = chars[j]; in populate_glyph_to_unicode() 329 const void* HDCOffscreen::draw(const SkGlyph& glyph, bool isBW, in draw() argument 343 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw() 359 fWidth = SkMax32(fWidth, glyph.fWidth); in draw() 360 fHeight = SkMax32(fHeight, glyph.fHeight); in draw() 396 xform.eDx = (float)-glyph.fLeft; in draw() [all …]
|
D | SkFontHost_mac_atsui.cpp | 82 virtual void generateAdvance(SkGlyph* glyph); 83 virtual void generateMetrics(SkGlyph* glyph); 84 virtual void generateImage(const SkGlyph& glyph); 85 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 200 ATSGlyphRef glyph; in generateCharToGlyph() local 203 glyph = layoutPtr->glyphID; in generateCharToGlyph() 205 return glyph; in generateCharToGlyph() 208 static void set_glyph_metrics_on_error(SkGlyph* glyph) { in set_glyph_metrics_on_error() argument 209 glyph->fRsbDelta = 0; in set_glyph_metrics_on_error() 210 glyph->fLsbDelta = 0; in set_glyph_metrics_on_error() [all …]
|
/external/skia/legacy/src/core/ |
D | SkGlyphCache.cpp | 139 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local 141 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance() 142 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance() 143 fGlyphHash[index] = glyph; in getGlyphIDAdvance() 145 return *glyph; in getGlyphIDAdvance() 199 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local 201 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics() 202 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics() 203 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics() 204 fGlyphHash[index] = glyph; in getGlyphIDMetrics() [all …]
|
D | SkScalerContext.cpp | 180 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument 181 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext() 191 SkDebugf("--- no context for glyph %x\n", glyph.getGlyphID()); in getGlyphContext() 262 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument 264 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance() 268 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance() 271 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument 272 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics() 280 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics() 284 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics() [all …]
|
/external/skia/src/core/ |
D | SkGlyphCache.cpp | 141 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local 143 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance() 144 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance() 145 fGlyphHash[index] = glyph; in getGlyphIDAdvance() 147 return *glyph; in getGlyphIDAdvance() 201 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local 203 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics() 204 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics() 205 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics() 206 fGlyphHash[index] = glyph; in getGlyphIDMetrics() [all …]
|
D | SkScalerContext.cpp | 183 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument 184 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext() 265 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument 267 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance() 271 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance() 274 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument 275 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics() 283 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics() 287 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics() 288 glyph->fWidth = 0; in getMetrics() [all …]
|
/external/skia/src/gpu/ |
D | GrTextStrike.cpp | 147 static void FreeGlyph(GrGlyph*& glyph) { glyph->free(); } in FreeGlyph() argument 167 GrGlyph* glyph = fPool.alloc(); in generateGlyph() local 168 glyph->init(packed, bounds); in generateGlyph() 169 fCache.insert(packed, glyph); in generateGlyph() 170 return glyph; in generateGlyph() 173 bool GrTextStrike::getGlyphAtlas(GrGlyph* glyph, GrFontScaler* scaler) { in getGlyphAtlas() argument 179 GrAssert(glyph); in getGlyphAtlas() 181 GrAssert(fCache.contains(glyph)); in getGlyphAtlas() 182 if (glyph->fAtlas) { in getGlyphAtlas() 189 size_t size = glyph->fBounds.area() * bytesPerPixel; in getGlyphAtlas() [all …]
|
D | GrTextContext.cpp | 128 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); in drawPackedGlyph() local 129 if (NULL == glyph || glyph->fBounds.isEmpty()) { in drawPackedGlyph() 133 vx += SkIntToFixed(glyph->fBounds.fLeft); in drawPackedGlyph() 134 vy += SkIntToFixed(glyph->fBounds.fTop); in drawPackedGlyph() 137 GrFixed width = glyph->fBounds.width(); in drawPackedGlyph() 138 GrFixed height = glyph->fBounds.height(); in drawPackedGlyph() 141 if (true || NULL == glyph->fAtlas) { in drawPackedGlyph() 150 if (NULL == glyph->fAtlas) { in drawPackedGlyph() 151 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph() 161 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph() [all …]
|
/external/freetype/src/pshinter/ |
D | pshalgo.c | 443 PSH_Glyph glyph ) in psh_hint_align() argument 461 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align() 462 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align() 474 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align() 475 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align() 520 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align() 540 if ( glyph->do_stem_adjust ) in psh_hint_align() 671 PSH_Glyph glyph ) 689 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 690 ( dimension == 1 && !glyph->do_vert_hints ) ) [all …]
|
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
D | FontHaiku.cpp | 42 int charUnicodeToUTF8HACK(unsigned short glyph, char* out) in charUnicodeToUTF8HACK() argument 46 if (glyph < 0x0080) in charUnicodeToUTF8HACK() 47 out[i++] = static_cast<char>(glyph); in charUnicodeToUTF8HACK() 48 else if (glyph < 0x0800) { // 2 bytes in charUnicodeToUTF8HACK() 49 out[i++] = 0xc0 | (glyph >> 6); in charUnicodeToUTF8HACK() 50 out[i++] = 0x80 | (glyph & 0x3F); in charUnicodeToUTF8HACK() 51 } else if (glyph > 0x0800) { // 3 bytes in charUnicodeToUTF8HACK() 52 out[i++] = 0xe0 | (glyph >> 12); in charUnicodeToUTF8HACK() 53 out[i++] = 0x80 | ((glyph >> 6) & 0x3F); in charUnicodeToUTF8HACK() 54 out[i++] = 0x80 | (glyph & 0x3F); in charUnicodeToUTF8HACK()
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | GlyphMetricsMap.h | 53 T metricsForGlyph(Glyph glyph) in metricsForGlyph() argument 55 return locatePage(glyph / GlyphMetricsPage::size)->metricsForGlyph(glyph); in metricsForGlyph() 58 void setMetricsForGlyph(Glyph glyph, const T& metrics) in setMetricsForGlyph() argument 60 locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics); in setMetricsForGlyph() 68 T metricsForGlyph(Glyph glyph) const { return m_metrics[glyph % size]; } in metricsForGlyph() 69 void setMetricsForGlyph(Glyph glyph, const T& metrics) in setMetricsForGlyph() 71 setMetricsForIndex(glyph % size, metrics); in setMetricsForGlyph()
|
D | SimpleFontData.h | 112 float widthForGlyph(Glyph glyph) const; 123 … bool isZeroWidthSpaceGlyph(Glyph glyph) const { return glyph == m_zeroWidthSpaceGlyph && glyph; } in isZeroWidthSpaceGlyph() argument 202 FloatRect boundsForGDIGlyph(Glyph glyph) const; 203 float widthForGDIGlyph(Glyph glyph) const; 291 ALWAYS_INLINE FloatRect SimpleFontData::boundsForGlyph(Glyph glyph) const in boundsForGlyph() argument 293 if (isZeroWidthSpaceGlyph(glyph)) in boundsForGlyph() 298 bounds = m_glyphToBoundsMap->metricsForGlyph(glyph); in boundsForGlyph() 303 bounds = platformBoundsForGlyph(glyph); in boundsForGlyph() 306 m_glyphToBoundsMap->setMetricsForGlyph(glyph, bounds); in boundsForGlyph() 310 ALWAYS_INLINE float SimpleFontData::widthForGlyph(Glyph glyph) const in widthForGlyph() argument [all …]
|