Lines Matching refs:glyphID

498 static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics)  in GetMetrics()  argument
505 if (glyphID < ttf->numberOfHMetrics) { in GetMetrics()
506 metrics->aw = GetUInt16(table, 4 * glyphID, 1); in GetMetrics()
507 metrics->lsb = GetInt16(table, 4 * glyphID + 2, 1); in GetMetrics()
510 …metrics->lsb = GetInt16(table + ttf->numberOfHMetrics * 4, (glyphID - ttf->numberOfHMetrics) * 2, … in GetMetrics()
517 if (glyphID < ttf->numOfLongVerMetrics) { in GetMetrics()
518 metrics->ah = GetUInt16(table, 4 * glyphID, 1); in GetMetrics()
519 metrics->tsb = GetInt16(table, 4 * glyphID + 2, 1); in GetMetrics()
522 …metrics->tsb = GetInt16(table + ttf->numOfLongVerMetrics * 4, (glyphID - ttf->numOfLongVerMetrics)… in GetMetrics()
529 static int GetSimpleTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray, TTG… in GetSimpleTTOutline() argument
540 if( glyphID >= ttf->nglyphs ) /*- glyph is not present in the font */ in GetSimpleTTOutline()
542 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetSimpleTTOutline()
552 GetMetrics(ttf, glyphID, metrics); in GetSimpleTTOutline()
620 static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray, T… in GetCompoundTTOutline() argument
633 if (glyphID >= ttf->nglyphs) /*- incorrect glyphID */ in GetCompoundTTOutline()
636 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetCompoundTTOutline()
645 GetMetrics(ttf, glyphID, metrics); in GetCompoundTTOutline()
825 static int GetTTGlyphOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray, TTGl… in GetTTGlyphOutline() argument
836 if (glyphID >= ttf->nglyphs) return -1; /**/ in GetTTGlyphOutline()
838 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetTTGlyphOutline()
839 int length = ttf->goffsets[glyphID+1] - ttf->goffsets[glyphID]; in GetTTGlyphOutline()
842 if (metrics) GetMetrics(ttf, glyphID, metrics); in GetTTGlyphOutline()
850 res=GetSimpleTTOutline(ttf, glyphID, pointArray, metrics); in GetTTGlyphOutline()
855 aPrivList.push_back( glyphID ); in GetTTGlyphOutline()
856 …res = GetCompoundTTOutline(ttf, glyphID, pointArray, metrics, glyphlist ? *glyphlist : aPrivList ); in GetTTGlyphOutline()
864 fprintf(out, "Glyph: %d\nPoints: %d\n", glyphID, res); in GetTTGlyphOutline()
1945 int GetTTGlyphPoints(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray) in GetTTGlyphPoints() argument
1947 return GetTTGlyphOutline(ttf, glyphID, pointArray, 0, 0); in GetTTGlyphPoints()
1950 int GetTTGlyphComponents(TrueTypeFont *ttf, sal_uInt32 glyphID, std::vector< sal_uInt32 >& glyphlis… in GetTTGlyphComponents() argument
1954 if( glyphID >= ttf->nglyphs ) in GetTTGlyphComponents()
1958 const sal_uInt8* ptr = glyf + ttf->goffsets[glyphID]; in GetTTGlyphComponents()
1960 glyphlist.push_back( glyphID ); in GetTTGlyphComponents()
2620 sal_uInt16 glyphID = glyphArray[i]; in GetTTSimpleGlyphMetrics() local
2622 if (glyphID < n) { in GetTTSimpleGlyphMetrics()
2623 nAdvOffset = 4 * glyphID; in GetTTSimpleGlyphMetrics()
2627 if( glyphID < ttf->nglyphs ) in GetTTSimpleGlyphMetrics()
2628 nLsbOffset = 4 * n + 2 * (glyphID - n); in GetTTSimpleGlyphMetrics()
2759 GlyphData *GetTTRawGlyphData(TrueTypeFont *ttf, sal_uInt32 glyphID) in GetTTRawGlyphData() argument
2765 if( glyphID >= ttf->nglyphs ) in GetTTRawGlyphData()
2770 if( length < ttf->goffsets[ glyphID+1 ] ) in GetTTRawGlyphData()
2773 length = ttf->goffsets[glyphID+1] - ttf->goffsets[glyphID]; in GetTTRawGlyphData()
2778 const sal_uInt8* srcptr = glyf + ttf->goffsets[glyphID]; in GetTTRawGlyphData()
2787 d->glyphID = glyphID; in GetTTRawGlyphData()
2792 n = GetTTGlyphPoints(ttf, glyphID, &cp); in GetTTRawGlyphData()
2807 if (glyphID < ttf->numberOfHMetrics) { in GetTTRawGlyphData()
2808 d->aw = GetUInt16(hmtx, 4 * glyphID, 1); in GetTTRawGlyphData()
2809 d->lsb = GetInt16(hmtx, 4 * glyphID + 2, 1); in GetTTRawGlyphData()
2812 … d->lsb = GetInt16(hmtx + ttf->numberOfHMetrics * 4, (glyphID - ttf->numberOfHMetrics) * 2, 1); in GetTTRawGlyphData()