/third_party/skia/third_party/externals/harfbuzz/test/api/ |
H A D | test-ot-math.c | 189 hb_codepoint_t glyph; in test_get_glyph_italics_correction() local 193 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); in test_get_glyph_italics_correction() 194 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo not available in test_get_glyph_italics_correction() 198 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); in test_get_glyph_italics_correction() 199 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo empty in test_get_glyph_italics_correction() 203 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); in test_get_glyph_italics_correction() 204 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathItalicsCorrectionInfo empty in test_get_glyph_italics_correction() 208 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); in test_get_glyph_italics_correction() 209 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // Glyph without italic correction. in test_get_glyph_italics_correction() 210 g_assert(hb_font_get_glyph_from_name (hb_font, "A", -1, &glyph)); in test_get_glyph_italics_correction() 224 hb_codepoint_t glyph; test_get_glyph_top_accent_attachment() local 259 hb_codepoint_t glyph; test_is_glyph_extended_shape() local 285 hb_codepoint_t glyph; test_get_glyph_kerning() local 337 get_glyph_assembly_italics_correction(hb_font_t *font, hb_codepoint_t glyph, hb_bool_t horizontal) get_glyph_assembly_italics_correction() argument 352 hb_codepoint_t glyph; test_get_glyph_assembly_italics_correction() local 418 hb_codepoint_t glyph; test_get_glyph_variants() local 542 hb_codepoint_t glyph; test_get_glyph_assembly() local [all...] |
/third_party/skia/third_party/externals/freetype/src/pfr/ |
H A D | pfrgload.c | 5 * FreeType PFR glyph loader (body). 40 pfr_glyph_init( PFR_Glyph glyph, in pfr_glyph_init() argument 43 FT_ZERO( glyph ); in pfr_glyph_init() 45 glyph->loader = loader; in pfr_glyph_init() 46 glyph->path_begun = 0; in pfr_glyph_init() 53 pfr_glyph_done( PFR_Glyph glyph ) in pfr_glyph_done() 55 FT_Memory memory = glyph->loader->memory; in pfr_glyph_done() 58 FT_FREE( glyph->x_control ); in pfr_glyph_done() 59 glyph->y_control = NULL; in pfr_glyph_done() 61 glyph in pfr_glyph_done() 127 pfr_glyph_line_to( PFR_Glyph glyph, FT_Vector* to ) pfr_glyph_line_to() argument 161 pfr_glyph_curve_to( PFR_Glyph glyph, FT_Vector* control1, FT_Vector* control2, FT_Vector* to ) pfr_glyph_curve_to() argument 202 pfr_glyph_move_to( PFR_Glyph glyph, FT_Vector* to ) pfr_glyph_move_to() argument 249 pfr_glyph_load_simple( PFR_Glyph glyph, FT_Byte* p, FT_Byte* limit ) pfr_glyph_load_simple() argument 559 pfr_glyph_load_compound( PFR_Glyph glyph, FT_Byte* p, FT_Byte* limit ) pfr_glyph_load_compound() argument 722 pfr_glyph_load_rec( PFR_Glyph glyph, FT_Stream stream, FT_ULong gps_offset, FT_ULong offset, FT_ULong size ) pfr_glyph_load_rec() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftglyph.c | 21 * that can be used by client applications to easily retrieve glyph 48 #define FT_COMPONENT glyph 63 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in FT_CALLBACK_DEF() local 65 FT_Library library = FT_GLYPH( glyph )->library; in FT_CALLBACK_DEF() 74 glyph->left = slot->bitmap_left; in FT_CALLBACK_DEF() 75 glyph->top = slot->bitmap_top; in FT_CALLBACK_DEF() 80 glyph->bitmap = slot->bitmap; in FT_CALLBACK_DEF() 85 FT_Bitmap_Init( &glyph->bitmap ); in FT_CALLBACK_DEF() 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in FT_CALLBACK_DEF() 113 FT_BitmapGlyph glyph in ft_bitmap_glyph_done() local 125 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; ft_bitmap_glyph_bbox() local 163 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; FT_CALLBACK_DEF() local 195 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; ft_outline_glyph_done() local 228 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; ft_outline_glyph_transform() local 243 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; ft_outline_glyph_bbox() local 254 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; FT_CALLBACK_DEF() local 295 FT_Glyph glyph = NULL; ft_new_glyph() local 405 FT_Glyph glyph; FT_EXPORT_DEF() local 489 FT_Glyph_Get_CBox( FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox ) FT_Glyph_Get_CBox() argument 544 FT_Glyph b, glyph; FT_EXPORT_DEF() local [all...] |
/third_party/skia/src/ports/ |
H A D | SkScalerContext_win_dw.cpp | 283 // horizontal glyphs and the subpixel flag should not affect glyph shapes. in SkScalerContext_DW() 426 bool SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument 427 glyph->fAdvanceX = 0; in generateAdvance() 428 glyph->fAdvanceY = 0; in generateAdvance() 429 uint16_t glyphId = glyph->getGlyphID(); in generateAdvance() 432 // DirectWrite treats all out of bounds glyph ids as having the same data as glyph 0. in generateAdvance() 433 // For consistency with all other backends, treat out of range glyph ids as an error. in generateAdvance() 453 "Could not get gdi compatible glyph metrics."); in generateAdvance() 477 glyph in generateAdvance() 482 getBoundingBox(SkGlyph* glyph, DWRITE_RENDERING_MODE renderingMode, DWRITE_TEXTURE_TYPE textureType, RECT* bbox) getBoundingBox() argument 550 isColorGlyph(const SkGlyph& glyph) isColorGlyph() argument 555 isPngGlyph(const SkGlyph& glyph) isPngGlyph() argument 567 getColorGlyphRun(const SkGlyph& glyph, IDWriteColorGlyphRunEnumerator** colorGlyph) getColorGlyphRun() argument 596 generateColorMetrics(SkGlyph* glyph) generateColorMetrics() argument 660 generatePngMetrics(SkGlyph* glyph) generatePngMetrics() argument 710 generateMetrics(SkGlyph* glyph) generateMetrics() argument 866 BilevelToBW(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph) BilevelToBW() argument 905 GrayscaleToA8(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph, const uint8_t* table8) GrayscaleToA8() argument 922 RGBToA8(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph, const uint8_t* table8) RGBToA8() argument 941 RGBToLcd16(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph, const uint8_t* tableR, const uint8_t* tableG, const uint8_t* tableB) RGBToLcd16() argument 966 drawDWMask(const SkGlyph& glyph, DWRITE_RENDERING_MODE renderingMode, DWRITE_TEXTURE_TYPE textureType) drawDWMask() argument 1053 generateColorGlyphImage(const SkGlyph& glyph) generateColorGlyphImage() argument 1123 generatePngGlyphImage(const SkGlyph& glyph) generatePngGlyphImage() argument 1165 generateImage(const SkGlyph& glyph) generateImage() argument 1232 generatePath(SkGlyphID glyph, SkPath* path) generatePath() argument [all...] |
H A D | SkScalerContext_win_dw.h | 30 bool generateAdvance(SkGlyph* glyph) override; 31 void generateMetrics(SkGlyph* glyph) override; 32 void generateImage(const SkGlyph& glyph) override; 33 bool generatePath(SkGlyphID glyph, SkPath* path) override; 37 static void BilevelToBW(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph); 41 const SkGlyph& glyph, 46 const SkGlyph& glyph, 50 static void RGBToLcd16(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph, 53 const void* drawDWMask(const SkGlyph& glyph, 57 HRESULT getBoundingBox(SkGlyph* glyph, [all...] |
H A D | SkScalerContext_mac_ct.cpp | 57 // Set to make glyph bounding boxes visible. 154 const SkGlyph& glyph, CGGlyph glyphID, in getCG() 168 if (SkMask::kBW_Format != glyph.maskFormat()) { in getCG() 174 if (!generateA8FromLCD && SkMask::kA8_Format == glyph.maskFormat()) { in getCG() 182 if (SkMask::kARGB32_Format == glyph.maskFormat()) { in getCG() 187 if (!fCG || fSize.fWidth < glyph.width() || fSize.fHeight < glyph.height()) { in getCG() 188 if (fSize.fWidth < glyph.width()) { in getCG() 189 fSize.fWidth = RoundSize(glyph.width()); in getCG() 191 if (fSize.fHeight < glyph in getCG() 153 getCG(const SkScalerContext_Mac& context, const SkGlyph& glyph, CGGlyph glyphID, size_t* rowBytesPtr, bool generateA8FromLCD) getCG() argument 268 generateAdvance(SkGlyph* glyph) generateAdvance() argument 272 generateMetrics(SkGlyph* glyph) generateMetrics() argument 388 RGBToA8(const CGRGBPixel* SK_RESTRICT cgPixels, size_t cgRowBytes, const SkGlyph& glyph, void* glyphImage, const uint8_t* table8) RGBToA8() argument 419 RGBToLcd16(const CGRGBPixel* SK_RESTRICT cgPixels, size_t cgRowBytes, const SkGlyph& glyph, void* glyphImage, const uint8_t* tableR, const uint8_t* tableG, const uint8_t* tableB) RGBToLcd16() argument 447 generateImage(const SkGlyph& glyph) generateImage() argument 612 generatePath(SkGlyphID glyph, SkPath* path) generatePath() argument [all...] |
H A D | SkFontHost_FreeType.cpp | 376 bool generateAdvance(SkGlyph* glyph) override; 377 void generateMetrics(SkGlyph* glyph) override; 378 void generateImage(const SkGlyph& glyph) override; 403 void getBBoxForCurrentGlyph(const SkGlyph* glyph, FT_BBox* bbox, 407 void updateGlyphIfLCD(SkGlyph* glyph); 409 // update FreeType2 glyph slot with glyph emboldened 410 void emboldenIfNeeded(FT_Face face, FT_GlyphSlot glyph, SkGlyphID gid); 967 bool SkScalerContext_FreeType::generateAdvance(SkGlyph* glyph) { 978 glyph [all...] |
/third_party/skia/src/core/ |
H A D | SkScalerCache.cpp | 37 std::tuple<SkGlyph*, size_t> SkScalerCache::glyph(SkPackedGlyphID packedGlyphID) { in glyph() function in SkScalerCache 49 SkGlyph* glyph = fAlloc.make<SkGlyph>(fScalerContext->makeGlyph(packedGlyphID)); in digest() local 50 return {this->addGlyph(glyph), sizeof(SkGlyph)}; in digest() 53 SkGlyphDigest SkScalerCache::addGlyph(SkGlyph* glyph) { in addGlyph() argument 55 SkGlyphDigest digest = SkGlyphDigest{index, *glyph}; in addGlyph() 56 fDigestForPackedGlyphID.set(glyph->getPackedID(), digest); in addGlyph() 57 fGlyphForIndex.push_back(glyph); in addGlyph() 61 std::tuple<const SkPath*, size_t> SkScalerCache::preparePath(SkGlyph* glyph) { in preparePath() argument 63 if (glyph->setPath(&fAlloc, fScalerContext.get())) { in preparePath() 64 delta = glyph in preparePath() 69 mergePath(SkGlyph* glyph, const SkPath* path) mergePath() argument 100 prepareImage(SkGlyph* glyph) prepareImage() argument 120 SkGlyph* glyph = fAlloc.make<SkGlyph>(toID); mergeGlyphAndImage() local 245 findIntercepts(const SkScalar bounds[2], SkScalar scale, SkScalar xPos, SkGlyph* glyph, SkScalar* array, int* count) findIntercepts() argument [all...] |
H A D | SkStrikeForGPU.cpp | 14 bool SkStrikeForGPU::CanDrawAsMask(const SkGlyph& glyph) { in CanDrawAsMask() argument 15 return FitsInAtlas(glyph); in CanDrawAsMask() 18 bool SkStrikeForGPU::CanDrawAsSDFT(const SkGlyph& glyph) { in CanDrawAsSDFT() argument 19 return FitsInAtlas(glyph) && glyph.maskFormat() == SkMask::kSDF_Format; in CanDrawAsSDFT() 22 bool SkStrikeForGPU::CanDrawAsPath(const SkGlyph& glyph) { in CanDrawAsPath() argument 23 SkASSERT(glyph.isColor() || glyph.setPathHasBeenCalled()); in CanDrawAsPath() 24 return !glyph.isColor() && glyph in CanDrawAsPath() 27 FitsInAtlas(const SkGlyph& glyph) FitsInAtlas() argument [all...] |
H A D | SkRemoteGlyphCache.cpp | 192 // Represent a set of x sub-pixel-position glyphs with a glyph id < kMaxGlyphID and 195 // the glyph id and the y position == 0 with a single compare in the following way: 216 "SkPackedGlyphID must be organized: sub-y | glyph id | sub-x"); 281 // Keep track of if the glyph draw has been totally satisfied. It could be that this 282 // strike can not draw the glyph, and it must be rejected to be handled by fallback. 283 // For example, if a glyph has canDrawAsMask sent, then that data is on the GPU, and this 284 // strike totally satisfies this result. If canDrawAsMask is false, then this glyph must be 308 // dimension of the glyph. 322 void writeGlyphPath(const SkGlyph& glyph, Serializer* serializer) const; 371 static void writeGlyph(const SkGlyph& glyph, Serialize 439 writeGlyphPath( const SkGlyph& glyph, Serializer* serializer) const writeGlyphPath() argument 501 SkGlyph* glyph = &fMasksToSend.back(); prepareForMaskDrawing() local 911 ReadGlyph(SkTLazy<SkGlyph>& glyph, Deserializer* deserializer) ReadGlyph() argument 1016 SkTLazy<SkGlyph> glyph; readStrikeData() local 1031 SkTLazy<SkGlyph> glyph; readStrikeData() local [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-font.hh | 215 hb_codepoint_t glyph; in has_glyph() local 216 return get_nominal_glyph (unicode, &glyph); in has_glyph() 220 hb_codepoint_t *glyph, in get_nominal_glyph() 223 *glyph = not_found; in get_nominal_glyph() 225 unicode, glyph, in get_nominal_glyph() 242 hb_codepoint_t *glyph, in get_variation_glyph() 245 *glyph = not_found; in get_variation_glyph() 247 unicode, variation_selector, glyph, in get_variation_glyph() 251 hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance() 254 glyph, in get_glyph_h_advance() [all...] |
H A D | hb-ot-cff1-table.hh | 70 hb_codepoint_t get_code (hb_codepoint_t glyph) const in get_code() 72 assert (glyph > 0); in get_code() 73 glyph--; in get_code() 74 if (glyph < nCodes ()) in get_code() 76 return (hb_codepoint_t)codes[glyph]; in get_code() 110 hb_codepoint_t get_code (hb_codepoint_t glyph) const in get_code() 112 assert (glyph > 0); in get_code() 113 glyph--; in get_code() 116 if (glyph <= ranges[i].nLeft) in get_code() 118 hb_codepoint_t code = (hb_codepoint_t) ranges[i].first + glyph; in get_code() 142 HBUINT16 glyph; global() member 199 unsigned int glyph = 0; serialize() local 417 int glyph = (int)num_glyphs; get_size() local 469 unsigned int glyph = 0; serialize() local 1228 hb_codepoint_t glyph = 0; sid_to_glyph() local [all...] |
H A D | hb-font.cc | 121 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_nil() 124 *glyph = 0; in hb_font_get_nominal_glyph_nil() 132 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_default() 137 return font->get_nominal_glyphs (1, &unicode, 0, glyph, 0); in hb_font_get_nominal_glyph_default() 139 return font->parent->get_nominal_glyph (unicode, glyph); in hb_font_get_nominal_glyph_default() 177 hb_codepoint_t *glyph, in hb_font_get_variation_glyph_nil() 180 *glyph = 0; in hb_font_get_variation_glyph_nil() 189 hb_codepoint_t *glyph, in hb_font_get_variation_glyph_default() 192 return font->parent->get_variation_glyph (unicode, variation_selector, glyph); in hb_font_get_variation_glyph_default() 199 hb_codepoint_t glyph HB_UNUSE in hb_font_get_glyph_h_advance_nil() 118 hb_font_get_nominal_glyph_nil(hb_font_t *font HB_UNUSED, void *font_data HB_UNUSED, hb_codepoint_t unicode HB_UNUSED, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_nominal_glyph_nil() argument 129 hb_font_get_nominal_glyph_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_nominal_glyph_default() argument 173 hb_font_get_variation_glyph_nil(hb_font_t *font HB_UNUSED, void *font_data HB_UNUSED, hb_codepoint_t unicode HB_UNUSED, hb_codepoint_t variation_selector HB_UNUSED, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_variation_glyph_nil() argument 185 hb_font_get_variation_glyph_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_variation_glyph_default() argument 206 hb_font_get_glyph_h_advance_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, void *user_data HB_UNUSED) hb_font_get_glyph_h_advance_default() argument 231 hb_font_get_glyph_v_advance_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, void *user_data HB_UNUSED) hb_font_get_glyph_v_advance_default() argument 323 hb_font_get_glyph_h_origin_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_h_origin_default() argument 349 hb_font_get_glyph_v_origin_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_v_origin_default() argument 416 hb_font_get_glyph_extents_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, hb_glyph_extents_t *extents, void *user_data HB_UNUSED) hb_font_get_glyph_extents_default() argument 444 hb_font_get_glyph_contour_point_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, unsigned int point_index, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_font_get_glyph_contour_point_default() argument 471 hb_font_get_glyph_name_default(hb_font_t *font, void *font_data HB_UNUSED, hb_codepoint_t glyph, char *name, unsigned int size, void *user_data HB_UNUSED) hb_font_get_glyph_name_default() argument 482 hb_font_get_glyph_from_name_nil(hb_font_t *font HB_UNUSED, void *font_data HB_UNUSED, const char *name HB_UNUSED, int len HB_UNUSED, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_glyph_from_name_nil() argument 494 hb_font_get_glyph_from_name_default(hb_font_t *font, void *font_data HB_UNUSED, const char *name, int len, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_font_get_glyph_from_name_default() argument 807 hb_font_get_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph) hb_font_get_glyph() argument 835 hb_font_get_nominal_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t *glyph) hb_font_get_nominal_glyph() argument 887 hb_font_get_variation_glyph(hb_font_t *font, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph) hb_font_get_variation_glyph() argument 908 hb_font_get_glyph_h_advance(hb_font_t *font, hb_codepoint_t glyph) hb_font_get_glyph_h_advance() argument 927 hb_font_get_glyph_v_advance(hb_font_t *font, hb_codepoint_t glyph) hb_font_get_glyph_v_advance() argument 997 hb_font_get_glyph_h_origin(hb_font_t *font, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_h_origin() argument 1020 hb_font_get_glyph_v_origin(hb_font_t *font, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_v_origin() argument 1093 hb_font_get_glyph_extents(hb_font_t *font, hb_codepoint_t glyph, hb_glyph_extents_t *extents) hb_font_get_glyph_extents() argument 1116 hb_font_get_glyph_contour_point(hb_font_t *font, hb_codepoint_t glyph, unsigned int point_index, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_contour_point() argument 1139 hb_font_get_glyph_name(hb_font_t *font, hb_codepoint_t glyph, char *name, unsigned int size) hb_font_get_glyph_name() argument 1163 hb_font_get_glyph_from_name(hb_font_t *font, const char *name, int len, hb_codepoint_t *glyph) hb_font_get_glyph_from_name() argument 1212 hb_font_get_glyph_advance_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_advance_for_direction() argument 1267 hb_font_get_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_origin_for_direction() argument 1295 hb_font_add_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_add_glyph_origin_for_direction() argument 1323 hb_font_subtract_glyph_origin_for_direction(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_subtract_glyph_origin_for_direction() argument 1378 hb_font_get_glyph_extents_for_origin(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, hb_glyph_extents_t *extents) hb_font_get_glyph_extents_for_origin() argument 1407 hb_font_get_glyph_contour_point_for_origin(hb_font_t *font, hb_codepoint_t glyph, unsigned int point_index, hb_direction_t direction, hb_position_t *x, hb_position_t *y) hb_font_get_glyph_contour_point_for_origin() argument 1433 hb_font_glyph_to_string(hb_font_t *font, hb_codepoint_t glyph, char *s, unsigned int size) hb_font_glyph_to_string() argument 1458 hb_font_glyph_from_string(hb_font_t *font, const char *s, int len, hb_codepoint_t *glyph) hb_font_glyph_from_string() argument 2306 hb_font_get_nominal_glyph_trampoline(hb_font_t *font, void *font_data, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data) hb_font_get_nominal_glyph_trampoline() argument 2317 hb_font_get_variation_glyph_trampoline(hb_font_t *font, void *font_data, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data) hb_font_get_variation_glyph_trampoline() argument [all...] |
H A D | hb-ot-hmtx-table.hh | 46 _glyf_get_side_bearing_var (hb_font_t *font, hb_codepoint_t glyph, bool is_vertical); 49 _glyf_get_advance_var (hb_font_t *font, hb_codepoint_t glyph, bool is_vertical); 196 int get_side_bearing (hb_codepoint_t glyph) const in get_side_bearing() 198 if (glyph < num_advances) in get_side_bearing() 199 return table->longMetricZ[glyph].sb; in get_side_bearing() 201 if (unlikely (glyph >= num_metrics)) in get_side_bearing() 205 return bearings[glyph - num_advances]; in get_side_bearing() 208 int get_side_bearing (hb_font_t *font, hb_codepoint_t glyph) const in get_side_bearing() 210 int side_bearing = get_side_bearing (glyph); in get_side_bearing() 213 if (unlikely (glyph > in get_side_bearing() [all...] |
H A D | hb-ot-font.cc | 66 hb_codepoint_t *glyph, in hb_ot_get_nominal_glyph() 70 return ot_face->cmap->get_nominal_glyph (unicode, glyph); in hb_ot_get_nominal_glyph() 94 hb_codepoint_t *glyph, in hb_ot_get_variation_glyph() 98 return ot_face->cmap->get_variation_glyph (unicode, variation_selector, glyph); in hb_ot_get_variation_glyph() 144 hb_codepoint_t glyph, in hb_ot_get_glyph_v_origin() 151 *x = font->get_glyph_h_advance (glyph) / 2; in hb_ot_get_glyph_v_origin() 157 *y = font->em_scale_y (VORG.get_y_origin (glyph)); in hb_ot_get_glyph_v_origin() 163 if (ot_face->glyf->get_extents (font, glyph, &extents)) in hb_ot_get_glyph_v_origin() 166 hb_position_t tsb = vmtx.get_side_bearing (font, glyph); in hb_ot_get_glyph_v_origin() 181 hb_codepoint_t glyph, in hb_ot_get_glyph_extents() 63 hb_ot_get_nominal_glyph(hb_font_t *font HB_UNUSED, void *font_data, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_ot_get_nominal_glyph() argument 90 hb_ot_get_variation_glyph(hb_font_t *font HB_UNUSED, void *font_data, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_ot_get_variation_glyph() argument 142 hb_ot_get_glyph_v_origin(hb_font_t *font, void *font_data, hb_codepoint_t glyph, hb_position_t *x, hb_position_t *y, void *user_data HB_UNUSED) hb_ot_get_glyph_v_origin() argument 179 hb_ot_get_glyph_extents(hb_font_t *font, void *font_data, hb_codepoint_t glyph, hb_glyph_extents_t *extents, void *user_data HB_UNUSED) hb_ot_get_glyph_extents() argument 205 hb_ot_get_glyph_name(hb_font_t *font HB_UNUSED, void *font_data, hb_codepoint_t glyph, char *name, unsigned int size, void *user_data HB_UNUSED) hb_ot_get_glyph_name() argument 219 hb_ot_get_glyph_from_name(hb_font_t *font HB_UNUSED, void *font_data, const char *name, int len, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_ot_get_glyph_from_name() argument 320 _glyf_get_side_bearing_var(hb_font_t *font, hb_codepoint_t glyph, bool is_vertical) _glyf_get_side_bearing_var() argument 326 _glyf_get_advance_var(hb_font_t *font, hb_codepoint_t glyph, bool is_vertical) _glyf_get_advance_var() argument [all...] |
H A D | hb-ot-math.cc | 96 * @glyph: The glyph index from which to retrieve the value 99 * glyph index. 101 * Return value: the italics correction of the glyph or zero 107 hb_codepoint_t glyph) in hb_ot_math_get_glyph_italics_correction() 109 return font->face->table.MATH->get_glyph_info().get_italics_correction (glyph, font); in hb_ot_math_get_glyph_italics_correction() 115 * @glyph: The glyph index from which to retrieve the value 118 * glyph index. 120 * For any glyph tha 106 hb_ot_math_get_glyph_italics_correction(hb_font_t *font, hb_codepoint_t glyph) hb_ot_math_get_glyph_italics_correction() argument 132 hb_ot_math_get_glyph_top_accent_attachment(hb_font_t *font, hb_codepoint_t glyph) hb_ot_math_get_glyph_top_accent_attachment() argument 150 hb_ot_math_is_glyph_extended_shape(hb_face_t *face, hb_codepoint_t glyph) hb_ot_math_is_glyph_extended_shape() argument 176 hb_ot_math_get_glyph_kerning(hb_font_t *font, hb_codepoint_t glyph, hb_ot_math_kern_t kern, hb_position_t correction_height) hb_ot_math_get_glyph_kerning() argument 211 hb_ot_math_get_glyph_variants(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, unsigned int start_offset, unsigned int *variants_count, hb_ot_math_glyph_variant_t *variants ) hb_ot_math_get_glyph_variants() argument 275 hb_ot_math_get_glyph_assembly(hb_font_t *font, hb_codepoint_t glyph, hb_direction_t direction, unsigned int start_offset, unsigned int *parts_count, hb_ot_math_glyph_part_t *parts, hb_position_t *italics_correction ) hb_ot_math_get_glyph_assembly() argument [all...] |
H A D | hb-ft.cc | 250 hb_codepoint_t *glyph, in hb_ft_get_nominal_glyph() 274 *glyph = g; in hb_ft_get_nominal_glyph() 309 hb_codepoint_t *glyph, in hb_ft_get_variation_glyph() 319 *glyph = g; in hb_ft_get_variation_glyph() 347 hb_codepoint_t glyph = *first_glyph; in hb_ft_get_glyph_h_advances() 350 if (ft_font->advance_cache.get (glyph, &cv)) in hb_ft_get_glyph_h_advances() 354 FT_Get_Advance (ft_face, glyph, load_flags, &v); in hb_ft_get_glyph_h_advances() 355 ft_font->advance_cache.set (glyph, v); in hb_ft_get_glyph_h_advances() 367 hb_codepoint_t glyph, 374 if (unlikely (FT_Get_Advance (ft_font->ft_face, glyph, ft_fon 247 hb_ft_get_nominal_glyph(hb_font_t *font HB_UNUSED, void *font_data, hb_codepoint_t unicode, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_ft_get_nominal_glyph() argument 305 hb_ft_get_variation_glyph(hb_font_t *font HB_UNUSED, void *font_data, hb_codepoint_t unicode, hb_codepoint_t variation_selector, hb_codepoint_t *glyph, void *user_data HB_UNUSED) hb_ft_get_variation_glyph() argument [all...] |
/third_party/skia/tools/fonts/ |
H A D | RandomScalerContext.cpp | 50 bool RandomScalerContext::generateAdvance(SkGlyph* glyph) { return fProxy->generateAdvance(glyph); } in generateAdvance() argument 52 void RandomScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument 53 // Here we will change the mask format of the glyph in generateMetrics() 56 switch (glyph->getGlyphID() % 4) { in generateMetrics() 63 *glyph = fProxy->internalMakeGlyph(glyph->getPackedID(), format); in generateMetrics() 65 if (fFakeIt || (glyph->getGlyphID() % 4) != 2) { in generateMetrics() 70 if (!fProxy->getPath(glyph->getPackedID(), &path)) { in generateMetrics() 73 glyph in generateMetrics() 87 generateImage(const SkGlyph& glyph) generateImage() argument 128 generatePath(SkGlyphID glyph, SkPath* path) generatePath() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/cff/ |
H A D | cffgload.c | 123 /********** quickly processes each glyph charstring to *********/ 156 /* For each glyph, parse the glyph charstring and extract */ 180 /* ignore the error if one has occurred -- skip to next glyph */ 194 cff_slot_load( CFF_GlyphSlot glyph, in FT_LOCAL_DEF() 202 TT_Face face = (TT_Face)glyph->root.face; in FT_LOCAL_DEF() 236 glyph->x_scale = 0x10000L; in FT_LOCAL_DEF() 237 glyph->y_scale = 0x10000L; in FT_LOCAL_DEF() 240 glyph->x_scale = size->root.metrics.x_scale; in FT_LOCAL_DEF() 241 glyph in FT_LOCAL_DEF() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
H A D | GlyfEncoder.java | 37 * Implementation of compression of CTF glyph data, as per sections 5.6-5.10 and 6 of the spec. 66 Glyph glyph = glyf.glyph(sourceOffset, length); in encode() 67 writeGlyph(glyph); in encode() 71 private void writeGlyph(Glyph glyph) { in writeGlyph() argument 73 if (glyph == null || glyph.dataLength() == 0) { in writeGlyph() 75 } else if (glyph instanceof SimpleGlyph) { in writeGlyph() 76 writeSimpleGlyph((SimpleGlyph)glyph); in writeGlyph() 77 } else if (glyph instanceo in writeGlyph() 85 writeInstructions(Glyph glyph) writeInstructions() argument 99 writeSimpleGlyph(SimpleGlyph glyph) writeSimpleGlyph() argument 126 writeCompositeGlyph(CompositeGlyph glyph) writeCompositeGlyph() argument 257 splitPush(Glyph glyph) splitPush() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/pshinter/ |
H A D | pshalgo.c | 440 PSH_Glyph glyph ) in psh_hint_align() 458 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align() 459 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align() 471 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align() 472 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align() 517 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align() 537 if ( glyph->do_stem_adjust ) in psh_hint_align() 668 PSH_Glyph glyph ) 686 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 687 ( dimension == 1 && !glyph 1081 psh_glyph_load_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_load_points() argument 1115 psh_glyph_save_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_save_points() argument 1155 psh_glyph_init( PSH_Glyph glyph, FT_Outline* outline, PS_Hints ps_hints, PSH_Globals globals ) psh_glyph_init() argument 1556 psh_glyph_find_strong_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_find_strong_points() argument 1710 psh_glyph_interpolate_strong_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_interpolate_strong_points() argument 1761 psh_glyph_interpolate_normal_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_interpolate_normal_points() argument 1915 psh_glyph_interpolate_other_points( PSH_Glyph glyph, FT_Int dimension ) psh_glyph_interpolate_other_points() argument 2067 PSH_Glyph glyph = &glyphrec; ps_hints_apply() local [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
H A D | GlyphRenumberer.java | 27 * A utility class for applying a mapping to glyph number references within a TrueType composite 28 * glyph object. 40 // Offsets relative to glyph header 44 // Offsets relative to composite glyph block 56 * Apply a renumbering referenced glyphs in TrueType glyph data. Note that this method has a low 57 * level interface (bytes) for efficiency, as, in many cases the glyph data does not need to be 62 * @return renumbered glyph data 64 public static ReadableFontData renumberGlyph(ReadableFontData glyph, in renumberGlyph() argument 66 return isCompositeGlyph(glyph) in renumberGlyph() 67 ? renumberCompositeGlyph(glyph, mappin in renumberGlyph() 78 isCompositeGlyph(ReadableFontData glyph) isCompositeGlyph() argument 82 renumberCompositeGlyph(ReadableFontData glyph, Map<Integer, Integer> mapping) renumberCompositeGlyph() argument [all...] |
H A D | GlyphStripper.java | 27 * Strip the hints from one glyph. 38 public Glyph.Builder<? extends Glyph> stripGlyph(Glyph glyph) { in stripGlyph() argument 40 if (glyph != null && glyph.readFontData().length() > 0) { in stripGlyph() 41 switch (glyph.glyphType()) { in stripGlyph() 43 newGlyphData = stripSimpleGlyph(glyph); in stripGlyph() 46 newGlyphData = stripCompositeGlyph(glyph); in stripGlyph() 58 private WritableFontData stripSimpleGlyph(Glyph glyph) { in stripSimpleGlyph() argument 59 int size = computeSimpleStrippedGlyphSize(glyph); in stripSimpleGlyph() 64 // objects should be able to take glyph subtable in stripSimpleGlyph() 108 stripCompositeGlyph(Glyph glyph) stripCompositeGlyph() argument 144 computeSimpleStrippedGlyphSize(Glyph glyph) computeSimpleStrippedGlyphSize() argument 162 computeCompositeStrippedGlyphSize(Glyph glyph) computeCompositeStrippedGlyphSize() argument [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/ |
H A D | SFLint.java | 130 Glyph glyph = glyphTable.glyph(offset, length); in lintWindowsClipping() 131 if (glyph != null && glyph.numberOfContours() != 0) { in lintWindowsClipping() 132 int xMin = glyph.xMin(); in lintWindowsClipping() 133 int yMin = glyph.yMin(); in lintWindowsClipping() 134 int xMax = glyph.xMax(); in lintWindowsClipping() 135 int yMax = glyph.yMax(); in lintWindowsClipping() 175 private void lintCompositeGlyph(Font font, CompositeGlyph glyph, int glyphId) { in lintCompositeGlyph() argument 182 for (int i = 0; i < glyph in lintCompositeGlyph() [all...] |
/third_party/skia/samplecode/ |
H A D | SamplePathText.cpp | 30 for (Glyph& glyph : fGlyphs) { in reset() 31 glyph.reset(fRand, this->width(), this->height()); in reset() 99 Glyph& glyph = fGlyphs[i]; in draw() local 101 canvas->translate(glyph.fPosition.x(), glyph.fPosition.y()); in draw() 102 canvas->scale(glyph.fZoom, glyph.fZoom); in draw() 103 canvas->rotate(glyph.fSpin); in draw() 104 canvas->translate(-glyph.fMidpt.x(), -glyph in draw() 195 Glyph* glyph = &fGlyphs[idx]; runAnimationTask() local 279 const Glyph& glyph = fGlyphs[i]; global() variable [all...] |