/external/fonttools/Lib/fontTools/ttLib/tables/ |
H A D | E_B_L_C_.py | 387 # A helper method that writes the metrics for the index sub table. It also 486 # of fixed sized data handling. Both kinds have big metrics so 493 self.metrics.toXML(writer, ttFont) 503 self.metrics = BigGlyphMetrics() 504 self.metrics.fromXML(name, attrs, content, ttFont) 522 self.metrics = BigGlyphMetrics() 523 sstruct.unpack2(bigGlyphMetricsFormat, self.data[4:], self.metrics) 537 dataList.append(sstruct.pack(bigGlyphMetricsFormat, self.metrics)) 589 self.metrics, data = sstruct.unpack2(bigGlyphMetricsFormat, data, BigGlyphMetrics()) 602 dataList.append(sstruct.pack(bigGlyphMetricsFormat, self.metrics)) [all...] |
H A D | _h_m_t_x.py | 23 metrics = array.array("h", data[:4 * numberOfMetrics]) 25 metrics.byteswap() 35 self.metrics = {} 39 self.metrics[glyphName] = list(metrics[i*2:i*2+2]) 40 lastAdvance = metrics[-2] 43 self.metrics[glyphName] = [lastAdvance, sideBearings[i]] 46 metrics = [] 48 metrics.append(self.metrics[glyphNam [all...] |
/external/fonttools/Tools/fontTools/ |
H A D | subset.py | 1220 self.metrics = dict((g,v) for g,v in self.metrics.items() if g in s.glyphs) 1221 return bool(self.metrics) 1225 self.metrics = dict((g,v) for g,v in self.metrics.items() if g in s.glyphs) 1239 return True # Never drop; has default metrics
|
/external/fonttools/Tools/fontTools/ttLib/ |
H A D | macUtils.py | 188 for name, (width, lsb) in hmtx.metrics.items():
|
/external/fonttools/Tools/fontTools/ttLib/tables/ |
H A D | C_B_D_T_.py | 41 self.metrics = SmallGlyphMetrics() 42 dummy, data = sstruct.unpack2(smallGlyphMetricsFormat, self.data, self.metrics) 52 dataList.append(sstruct.pack(smallGlyphMetricsFormat, self.metrics)) 60 self.metrics = BigGlyphMetrics() 61 dummy, data = sstruct.unpack2(bigGlyphMetricsFormat, self.data, self.metrics) 71 dataList.append(sstruct.pack(bigGlyphMetricsFormat, self.metrics))
|
H A D | E_B_D_T_.py | 79 # changed the size metrics should be recalculated. There are a variety 120 # requires metrics then those metrics may be in the locator. 121 # In this case populate the bitmaps with "export metrics". 128 # I'm not sure which metrics have priority here. 129 # For now if both metrics exist go with glyph metrics. 130 if hasattr(glyph, 'metrics'): 131 glyph.exportMetrics = glyph.metrics 133 glyph.exportMetrics = curIndexSubTable.metrics [all...] |
H A D | E_B_L_C_.py | 387 # A helper method that writes the metrics for the index sub table. It also 486 # of fixed sized data handling. Both kinds have big metrics so 493 self.metrics.toXML(writer, ttFont) 503 self.metrics = BigGlyphMetrics() 504 self.metrics.fromXML(name, attrs, content, ttFont) 522 self.metrics = BigGlyphMetrics() 523 sstruct.unpack2(bigGlyphMetricsFormat, self.data[4:], self.metrics) 537 dataList.append(sstruct.pack(bigGlyphMetricsFormat, self.metrics)) 589 self.metrics, data = sstruct.unpack2(bigGlyphMetricsFormat, data, BigGlyphMetrics()) 602 dataList.append(sstruct.pack(bigGlyphMetricsFormat, self.metrics)) [all...] |
H A D | _h_m_t_x.py | 23 metrics = array.array("h", data[:4 * numberOfMetrics]) 25 metrics.byteswap() 35 self.metrics = {} 39 self.metrics[glyphName] = list(metrics[i*2:i*2+2]) 40 lastAdvance = metrics[-2] 43 self.metrics[glyphName] = [lastAdvance, sideBearings[i]] 46 metrics = [] 48 metrics.append(self.metrics[glyphNam [all...] |
/external/freetype/include/ |
H A D | freetype.h | 239 /* A structure used to model the metrics of a single glyph. The */ 301 /* This structure models the metrics of a bitmap strike (i.e., a set */ 456 /* metrics. */ 486 /* i.e., the glyph's metrics, its image (bitmap or outline), and */ 936 /* vertical metrics. Only relevant for */ 1046 /* Indicates that the face contains horizontal glyph metrics. This */ 1050 /* Indicates that the face contains vertical glyph metrics. This */ 1143 * horizontal metrics (this is true for all font formats though). 1146 * @FT_HAS_VERTICAL can be used to check for vertical metrics. 1160 * vertical metrics (an 1464 FT_Size_Metrics metrics; /* size metrics */ member in struct:FT_SizeRec_ 1677 FT_Glyph_Metrics metrics; member in struct:FT_GlyphSlotRec_ [all...] |
/external/freetype/include/internal/ |
H A D | ftobjs.h | 328 /* If non-null, the interface through which glyph data and metrics */ 615 /* Set the metrics according to a bitmap strike. */ 621 /* Set the metrics according to a size request. */ 635 /* Use the horizontal metrics to synthesize the vertical metrics. */ 638 ft_synthesize_vertical_metrics( FT_Glyph_Metrics* metrics,
|
H A D | sfnt.h | 81 /* the common SFNT tables (head, OS/2, maxp, metrics, etc.) in the */ 219 /* Get the big metrics for a given embedded bitmap. */ 227 /* big_metrics :: A big SBit metrics structure for the glyph. */ 236 /* If the image format uses variable metrics, the stream cursor is */ 237 /* positioned just after the metrics header in the `EBDT' table on */ 243 TT_SBit_Metrics metrics ); 253 /* returns its metrics. */ 276 /* A big sbit metrics structure for the glyph image. */ 327 /* Load the metrics of a given strike. */ 335 /* metrics [all...] |
H A D | tttypes.h | 215 /* A structure modeling the long metrics of the `hmtx' and `vmtx' */ 237 /* A simple type to model the short metrics of the `hmtx' and `vmtx' */ 402 /* A structure used to hold the big metrics of a given glyph bitmap */ 445 /* A structure used to hold the small metrics of a given glyph bitmap */ 478 /* A structure used to describe the text line metrics of a given */ 565 /* metrics for each glyph bitmap. */ 587 TT_SBit_MetricsRec metrics; member in struct:TT_SBit_RangeRec_ 620 /* hori :: The line metrics for horizontal layouts. */ 622 /* vert :: The line metrics for vertical layouts. */ 698 /* hori :: The horizontal line metrics [all...] |
/external/freetype/src/autofit/ |
H A D | afcjk.c | 70 af_cjk_metrics_init_widths( AF_CJKMetrics metrics, argument 81 af_style_names[metrics->root.style_class->style] )); 85 metrics->axis[AF_DIMENSION_HORZ].width_count = 0; 86 metrics->axis[AF_DIMENSION_VERT].width_count = 0; 97 AF_FaceGlobals globals = metrics->root.globals; 100 AF_StyleClass style_class = metrics->root.style_class; 108 af_get_char_index( &metrics->root, 117 af_get_char_index( &metrics->root, 126 af_get_char_index( &metrics->root, 150 dummy->units_per_em = metrics 257 af_cjk_metrics_init_blues( AF_CJKMetrics metrics, FT_Face face ) argument 512 af_cjk_metrics_check_digits( AF_CJKMetrics metrics, FT_Face face ) argument 584 af_cjk_metrics_scale_dim( AF_CJKMetrics metrics, AF_Scaler scaler, AF_Dimension dim ) argument 679 af_cjk_metrics_scale( AF_CJKMetrics metrics, AF_Scaler scaler ) argument 1197 af_cjk_hints_compute_blue_edges( AF_GlyphHints hints, AF_CJKMetrics metrics, AF_Dimension dim ) argument 1414 AF_CJKMetrics metrics = (AF_CJKMetrics)hints->metrics; local [all...] |
H A D | afcjk.h | 88 /* used for horizontal metrics too for CJK */ 110 af_cjk_metrics_init( AF_CJKMetrics metrics, 114 af_cjk_metrics_scale( AF_CJKMetrics metrics, 119 AF_CJKMetrics metrics ); 124 AF_CJKMetrics metrics ); 128 af_cjk_metrics_check_digits( AF_CJKMetrics metrics, 132 af_cjk_metrics_init_widths( AF_CJKMetrics metrics,
|
H A D | afdummy.c | 27 AF_StyleMetrics metrics ) 29 af_glyph_hints_rescale( hints, metrics ); 31 hints->x_scale = metrics->scaler.x_scale; 32 hints->y_scale = metrics->scaler.y_scale; 33 hints->x_delta = metrics->scaler.x_delta; 34 hints->y_delta = metrics->scaler.y_delta;
|
H A D | afglobal.c | 356 if ( globals->metrics[nn] ) 365 writing_system_class->style_metrics_done( globals->metrics[nn] ); 367 FT_FREE( globals->metrics[nn] ); 391 AF_StyleMetrics metrics = NULL; local 416 metrics = globals->metrics[style]; 417 if ( metrics == NULL ) 419 /* create the global metrics object if necessary */ 423 if ( FT_ALLOC( metrics, writing_system_class->style_metrics_size ) ) 426 metrics [all...] |
H A D | afglobal.h | 112 AF_StyleMetrics metrics[AF_STYLE_MAX]; member in struct:AF_FaceGlobalsRec_
|
H A D | afhints.c | 544 /* Reset metrics. */ 548 AF_StyleMetrics metrics ) 550 hints->metrics = metrics; 551 hints->scaler_flags = metrics->scaler.flags; 596 * hint metrics appropriately 717 FT_UInt units_per_em = hints->metrics->scaler.face->units_per_EM; 748 * We use Taxicab metrics to measure the vector length.
|
H A D | afhints.h | 80 * `fake' segments that are generated to hint metrics appropriately, 365 AF_StyleMetrics metrics; member in struct:AF_GlyphHintsRec_ 431 AF_StyleMetrics metrics );
|
H A D | afindic.c | 36 af_indic_metrics_init( AF_CJKMetrics metrics, argument 43 metrics->units_per_em = face->units_per_EM; 49 af_cjk_metrics_init_widths( metrics, face ); 52 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars ); 54 af_cjk_metrics_check_digits( metrics, face ); 64 af_indic_metrics_scale( AF_CJKMetrics metrics, argument 68 af_cjk_metrics_scale( metrics, scaler ); 74 AF_CJKMetrics metrics ) 77 return af_cjk_hints_init( hints, metrics ); 84 AF_CJKMetrics metrics ) [all...] |
H A D | aflatin.c | 57 af_latin_metrics_init_widths( AF_LatinMetrics metrics, argument 68 af_style_names[metrics->root.style_class->style] )); 72 metrics->axis[AF_DIMENSION_HORZ].width_count = 0; 73 metrics->axis[AF_DIMENSION_VERT].width_count = 0; 84 AF_FaceGlobals globals = metrics->root.globals; 87 AF_StyleClass style_class = metrics->root.style_class; 102 af_get_char_index( &metrics->root, 111 af_get_char_index( &metrics->root, 120 af_get_char_index( &metrics->root, 144 dummy->units_per_em = metrics 258 af_latin_metrics_init_blues( AF_LatinMetrics metrics, FT_Face face ) argument 815 af_latin_metrics_check_digits( AF_LatinMetrics metrics, FT_Face face ) argument 887 af_latin_metrics_scale_dim( AF_LatinMetrics metrics, AF_Scaler scaler, AF_Dimension dim ) argument 1130 af_latin_metrics_scale( AF_LatinMetrics metrics, AF_Scaler scaler ) argument 2080 AF_LatinMetrics metrics = (AF_LatinMetrics)hints->metrics; local [all...] |
H A D | aflatin.h | 34 #define AF_LATIN_CONSTANT( metrics, c ) \ 35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 ) 97 /* ignored for horizontal metrics */ 117 af_latin_metrics_init( AF_LatinMetrics metrics, 121 af_latin_metrics_scale( AF_LatinMetrics metrics, 125 af_latin_metrics_init_widths( AF_LatinMetrics metrics, 129 af_latin_metrics_check_digits( AF_LatinMetrics metrics,
|
H A D | aflatin2.c | 59 af_latin2_metrics_init_widths( AF_LatinMetrics metrics, argument 68 metrics->axis[AF_DIMENSION_HORZ].width_count = 0; 69 metrics->axis[AF_DIMENSION_VERT].width_count = 0; 81 metrics->root.style_class->standard_char ); 91 dummy->units_per_em = metrics->units_per_em; 106 AF_LatinAxis axis = &metrics->axis[dim]; 149 AF_LatinAxis axis = &metrics->axis[dim]; 155 : AF_LATIN_CONSTANT( metrics, 50 ); 185 af_latin2_metrics_init_blues( AF_LatinMetrics metrics, argument 195 AF_LatinAxis axis = &metrics 430 af_latin2_metrics_check_digits( AF_LatinMetrics metrics, FT_Face face ) argument 516 af_latin2_metrics_scale_dim( AF_LatinMetrics metrics, AF_Scaler scaler, AF_Dimension dim ) argument 684 af_latin2_metrics_scale( AF_LatinMetrics metrics, AF_Scaler scaler ) argument 1631 AF_LatinMetrics metrics = (AF_LatinMetrics) hints->metrics; local [all...] |
H A D | afloader.c | 112 AF_StyleMetrics metrics = loader->metrics; local 174 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance, 188 AF_StyleClass style_class = metrics->style_class; 196 metrics ); 199 /* we now need to adjust the metrics according to the change in */ 406 vvector.x = slot->metrics.vertBearingX - slot->metrics.horiBearingX; 407 vvector.y = slot->metrics.vertBearingY - slot->metrics 527 AF_StyleMetrics metrics; local [all...] |
H A D | afloader.h | 47 AF_StyleMetrics metrics; member in struct:AF_LoaderRec_
|