Lines Matching refs:ttf

420 _inline const sal_uInt8* getTable( TrueTypeFont *ttf, sal_uInt32 ord)  in getTable()  argument
422 return (sal_uInt8*)ttf->tables[ord]; in getTable()
425 _inline sal_uInt32 getTableSize(TrueTypeFont *ttf, sal_uInt32 ord) in getTableSize() argument
427 return ttf->tlens[ord]; in getTableSize()
498 static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *metrics) in GetMetrics() argument
500 const sal_uInt8* table = getTable( ttf, O_hmtx ); in GetMetrics()
503 if (!table || !ttf->numberOfHMetrics) return; in GetMetrics()
505 if (glyphID < ttf->numberOfHMetrics) { in GetMetrics()
509 metrics->aw = GetUInt16(table, 4 * (ttf->numberOfHMetrics - 1), 1); in GetMetrics()
510 …metrics->lsb = GetInt16(table + ttf->numberOfHMetrics * 4, (glyphID - ttf->numberOfHMetrics) * 2, … in GetMetrics()
513 table = getTable(ttf, O_vmtx); in GetMetrics()
514 if( !table || !ttf->numOfLongVerMetrics ) in GetMetrics()
517 if (glyphID < ttf->numOfLongVerMetrics) { in GetMetrics()
521 metrics->ah = GetUInt16(table, 4 * (ttf->numOfLongVerMetrics - 1), 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
531 const sal_uInt8* table = getTable( ttf, O_glyf ); in GetSimpleTTOutline()
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
624 const sal_uInt8* table = getTable( ttf, O_glyf ); in GetCompoundTTOutline()
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()
678 if ((np = GetTTGlyphOutline(ttf, index, &nextComponent, 0, &glyphlist)) == 0) in GetCompoundTTOutline()
703 if (metrics) GetMetrics(ttf, index, metrics); in GetCompoundTTOutline()
825 static int GetTTGlyphOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoint **pointArray, TTGl… in GetTTGlyphOutline() argument
827 const sal_uInt8 *table = getTable( ttf, O_glyf ); in GetTTGlyphOutline()
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()
856 …res = GetCompoundTTOutline(ttf, glyphID, pointArray, metrics, glyphlist ? *glyphlist : aPrivList ); in GetTTGlyphOutline()
1393 static void FindCmap(TrueTypeFont *ttf) in FindCmap() argument
1395 const sal_uInt8* table = getTable(ttf, O_cmap); in FindCmap()
1396 sal_uInt32 table_size = getTableSize(ttf, O_cmap); in FindCmap()
1421 if( (table - ttf->ptr) + offset > (sal_uInt32)ttf->fsize ) in FindCmap()
1448 ttf->cmapType = CMAP_MS_Unicode; in FindCmap()
1449 ttf->cmap = table + ThreeOne; in FindCmap()
1451 ttf->cmapType = CMAP_MS_ShiftJIS; in FindCmap()
1452 ttf->cmap = table + ThreeTwo; in FindCmap()
1454 ttf->cmapType = CMAP_MS_Big5; in FindCmap()
1455 ttf->cmap = table + ThreeThree; in FindCmap()
1457 ttf->cmapType = CMAP_MS_PRC; in FindCmap()
1458 ttf->cmap = table + ThreeFour; in FindCmap()
1460 ttf->cmapType = CMAP_MS_Wansung; in FindCmap()
1461 ttf->cmap = table + ThreeFive; in FindCmap()
1463 ttf->cmapType = CMAP_MS_Johab; in FindCmap()
1464 ttf->cmap = table + ThreeSix; in FindCmap()
1466 ttf->cmapType = CMAP_MS_Symbol; in FindCmap()
1467 ttf->cmap = table + ThreeZero; in FindCmap()
1469 ttf->cmapType = CMAP_NOT_USABLE; in FindCmap()
1470 ttf->cmap = 0; in FindCmap()
1473 if (ttf->cmapType != CMAP_NOT_USABLE) { in FindCmap()
1474 switch (GetUInt16(ttf->cmap, 0, 1)) { in FindCmap()
1475 case 0: ttf->mapper = getGlyph0; break; in FindCmap()
1476 case 2: ttf->mapper = getGlyph2; break; in FindCmap()
1477 case 4: ttf->mapper = getGlyph4; break; in FindCmap()
1478 case 6: ttf->mapper = getGlyph6; break; in FindCmap()
1479 case 12: ttf->mapper= getGlyph12; break; in FindCmap()
1483 … printf("%s: %d is not a recognized cmap format.\n", ttf->fname, GetUInt16(ttf->cmap, 0, 1)); in FindCmap()
1485 ttf->cmapType = CMAP_NOT_USABLE; in FindCmap()
1486 ttf->cmap = 0; in FindCmap()
1487 ttf->mapper = 0; in FindCmap()
1492 static void GetKern(TrueTypeFont *ttf) in GetKern() argument
1494 const sal_uInt8* table = getTable(ttf, O_kern); in GetKern()
1501 ttf->nkern = GetUInt16(table, 2, 1); in GetKern()
1502 ttf->kerntables = (const sal_uInt8**)calloc(ttf->nkern, sizeof(sal_uInt8 *)); in GetKern()
1503 assert(ttf->kerntables != 0); in GetKern()
1504 memset(ttf->kerntables, 0, ttf->nkern * sizeof(sal_uInt8 *)); in GetKern()
1505 ttf->kerntype = KT_MICROSOFT; in GetKern()
1507 for( unsigned i = 0; i < ttf->nkern; ++i) { in GetKern()
1508 ttf->kerntables[i] = ptr; in GetKern()
1511 if( ptr > ttf->ptr+ttf->fsize ) in GetKern()
1513 free( ttf->kerntables ); in GetKern()
1521 ttf->nkern = GetUInt32(table, 4, 1); in GetKern()
1522 ttf->kerntables = (const sal_uInt8**)calloc(ttf->nkern, sizeof(sal_uInt8*)); in GetKern()
1523 assert(ttf->kerntables != 0); in GetKern()
1524 memset(ttf->kerntables, 0, ttf->nkern * sizeof(sal_uInt8 *)); in GetKern()
1525 ttf->kerntype = KT_APPLE_NEW; in GetKern()
1527 for( unsigned i = 0; i < ttf->nkern; ++i) { in GetKern()
1528 ttf->kerntables[i] = ptr; in GetKern()
1531 if( ptr > ttf->ptr+ttf->fsize ) in GetKern()
1533 free( ttf->kerntables ); in GetKern()
1541 ttf->kerntype = KT_NONE; in GetKern()
1542 ttf->kerntables = 0; in GetKern()
1551 static void KernGlyphsPrim1(TrueTypeFont *ttf, sal_uInt16 *glyphs, int nglyphs, int wmode, KernData… in KernGlyphsPrim1() argument
1553 (void)ttf; /* avoid warning */ in KernGlyphsPrim1()
1562 static void KernGlyphsPrim2(TrueTypeFont *ttf, sal_uInt16 *glyphs, int nglyphs, int wmode, KernData… in KernGlyphsPrim2() argument
1578 if (ttf->nkern > 1) { in KernGlyphsPrim2()
1579 fprintf(stderr, "KernGlyphsPrim2: %d kern tables found.\n", ttf->nkern); in KernGlyphsPrim2()
1582 for (j = 0; j < ttf->nkern; j++) { in KernGlyphsPrim2()
1583 sal_uInt16 coverage = GetUInt16(ttf->kerntables[j], 4, 1); in KernGlyphsPrim2()
1596 ptr = ttf->kerntables[j]; in KernGlyphsPrim2()
1609 kern[i].x = XUnits(ttf->unitsPerEm, GetInt16(ptr, 4 + (l-1) * 6, 1)); in KernGlyphsPrim2()
1611 kern[i].y = XUnits(ttf->unitsPerEm, GetInt16(ptr, 4 + (l-1) * 6, 1)); in KernGlyphsPrim2()
1637 static void allocTrueTypeFont( TrueTypeFont** ttf ) in allocTrueTypeFont() argument
1639 *ttf = (TrueTypeFont*)calloc(1,sizeof(TrueTypeFont)); in allocTrueTypeFont()
1640 if( *ttf != NULL ) in allocTrueTypeFont()
1642 (*ttf)->tag = 0; in allocTrueTypeFont()
1643 (*ttf)->fname = 0; in allocTrueTypeFont()
1644 (*ttf)->fsize = -1; in allocTrueTypeFont()
1645 (*ttf)->ptr = 0; in allocTrueTypeFont()
1646 (*ttf)->nglyphs = 0xFFFFFFFF; in allocTrueTypeFont()
1647 (*ttf)->pGSubstitution = 0; in allocTrueTypeFont()
1655 int OpenTTFontFile( const char* fname, sal_uInt32 facenum, TrueTypeFont** ttf ) in OpenTTFontFile() argument
1662 allocTrueTypeFont( ttf ); in OpenTTFontFile()
1663 if( ! *ttf ) in OpenTTFontFile()
1666 (*ttf)->fname = strdup(fname); in OpenTTFontFile()
1667 if( ! (*ttf)->fname ) in OpenTTFontFile()
1685 (*ttf)->fsize = st.st_size; in OpenTTFontFile()
1691 if ((*ttf)->fsize == 0) { in OpenTTFontFile()
1696 …if (((*ttf)->ptr = (sal_uInt8 *) mmap(0, (*ttf)->fsize, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAIL… in OpenTTFontFile()
1702 return doOpenTTFont( facenum, *ttf ); in OpenTTFontFile()
1707 free((*ttf)->fname); in OpenTTFontFile()
1708 free(*ttf); in OpenTTFontFile()
1709 *ttf = NULL; in OpenTTFontFile()
1714 int OpenTTFontBuffer(void* pBuffer, sal_uInt32 nLen, sal_uInt32 facenum, TrueTypeFont** ttf) in OpenTTFontBuffer() argument
1716 allocTrueTypeFont( ttf ); in OpenTTFontBuffer()
1717 if( *ttf == NULL ) in OpenTTFontBuffer()
1720 (*ttf)->fname = NULL; in OpenTTFontBuffer()
1721 (*ttf)->fsize = nLen; in OpenTTFontBuffer()
1722 (*ttf)->ptr = (sal_uInt8*)pBuffer; in OpenTTFontBuffer()
1724 return doOpenTTFont( facenum, *ttf ); in OpenTTFontBuffer()
1918 void CloseTTFont(TrueTypeFont *ttf) /*FOLD01*/ in CloseTTFont() argument
1920 if (ttf->tag != TTFontClassTag) return; in CloseTTFont()
1923 if( ttf->fname ) in CloseTTFont()
1924 munmap((char *) ttf->ptr, ttf->fsize); in CloseTTFont()
1926 free(ttf->fname); in CloseTTFont()
1927 free(ttf->goffsets); in CloseTTFont()
1928 free(ttf->psname); in CloseTTFont()
1929 free(ttf->family); in CloseTTFont()
1930 if( ttf->ufamily ) in CloseTTFont()
1931 free( ttf->ufamily ); in CloseTTFont()
1932 free(ttf->subfamily); in CloseTTFont()
1933 if( ttf->usubfamily ) in CloseTTFont()
1934 free( ttf->usubfamily ); in CloseTTFont()
1935 free(ttf->tables); in CloseTTFont()
1936 free(ttf->tlens); in CloseTTFont()
1937 free(ttf->kerntables); in CloseTTFont()
1939 ReleaseGSUB(ttf); in CloseTTFont()
1941 free(ttf); in CloseTTFont()
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()
1957 const sal_uInt8* glyf = getTable(ttf, O_glyf); in GetTTGlyphComponents()
1958 const sal_uInt8* ptr = glyf + ttf->goffsets[glyphID]; in GetTTGlyphComponents()
1970 n += GetTTGlyphComponents(ttf, index, glyphlist); in GetTTGlyphComponents()
1992 int CreateT3FromTTGlyphs(TrueTypeFont *ttf, FILE *outf, const char *fname, /*FOLD00*/ in CreateT3FromTTGlyphs() argument
1999 const sal_uInt8* table = getTable(ttf, O_head); in CreateT3FromTTGlyphs()
2001 int UPEm = ttf->unitsPerEm; in CreateT3FromTTGlyphs()
2053 if (!fname) fname = ttf->psname; in CreateT3FromTTGlyphs()
2057 fprintf(outf, h09, ttf->psname); in CreateT3FromTTGlyphs()
2073 …fprintf(outf, h17, rtl_crc32(0, ttf->ptr, ttf->fsize), nGlyphs, rtl_crc32(0, glyphArray, nGlyphs *… in CreateT3FromTTGlyphs()
2088 … r = GetTTGlyphOutline(ttf, glyphArray[i] < ttf->nglyphs ? glyphArray[i] : 0, &pa, &metrics, 0); in CreateT3FromTTGlyphs()
2147 int CreateTTFromTTGlyphs(TrueTypeFont *ttf, in CreateTTFromTTGlyphs() argument
2195 int n = GetTTNameRecords(ttf, &names); in CreateTTFromTTGlyphs()
2204 maxp = TrueTypeTableNew_maxp(getTable(ttf, O_maxp), getTableSize(ttf, O_maxp)); in CreateTTFromTTGlyphs()
2207 const sal_uInt8* p = getTable(ttf, O_hhea); in CreateTTFromTTGlyphs()
2216 p = getTable(ttf, O_head); in CreateTTFromTTGlyphs()
2233 gID[i] = glyfAdd(glyf, GetTTRawGlyphData(ttf, glyphArray[i]), ttf); in CreateTTFromTTGlyphs()
2244 if ((p = getTable(ttf, O_cvt)) != 0) { in CreateTTFromTTGlyphs()
2245 cvt = TrueTypeTableNew(T_cvt, getTableSize(ttf, O_cvt), p); in CreateTTFromTTGlyphs()
2249 if ((p = getTable(ttf, O_prep)) != 0) { in CreateTTFromTTGlyphs()
2250 prep = TrueTypeTableNew(T_prep, getTableSize(ttf, O_prep), p); in CreateTTFromTTGlyphs()
2254 if ((p = getTable(ttf, O_fpgm)) != 0) { in CreateTTFromTTGlyphs()
2255 fpgm = TrueTypeTableNew(T_fpgm, getTableSize(ttf, O_fpgm), p); in CreateTTFromTTGlyphs()
2259 if ((p = getTable(ttf, O_post)) != 0) { in CreateTTFromTTGlyphs()
2270 if ((p = getTable(ttf, O_OS2)) != 0) { in CreateTTFromTTGlyphs()
2271 os2 = TrueTypeTableNew(T_OS2, getTableSize(ttf, O_OS2), p); in CreateTTFromTTGlyphs()
2381 int CreateT42FromTTGlyphs(TrueTypeFont *ttf, in CreateT42FromTTGlyphs() argument
2397 int UPEm = ttf->unitsPerEm; in CreateT42FromTTGlyphs()
2406 const sal_uInt8* p = getTable(ttf, O_head); in CreateT42FromTTGlyphs()
2414 p = getTable(ttf, O_hhea); in CreateT42FromTTGlyphs()
2422 maxp = TrueTypeTableNew_maxp(getTable(ttf, O_maxp), getTableSize(ttf, O_maxp)); in CreateT42FromTTGlyphs()
2425 if ((p = getTable(ttf, O_cvt)) != 0) { in CreateT42FromTTGlyphs()
2426 cvt = TrueTypeTableNew(T_cvt, getTableSize(ttf, O_cvt), p); in CreateT42FromTTGlyphs()
2430 if ((p = getTable(ttf, O_prep)) != 0) { in CreateT42FromTTGlyphs()
2431 prep = TrueTypeTableNew(T_prep, getTableSize(ttf, O_prep), p); in CreateT42FromTTGlyphs()
2435 if ((p = getTable(ttf, O_fpgm)) != 0) { in CreateT42FromTTGlyphs()
2436 fpgm = TrueTypeTableNew(T_fpgm, getTableSize(ttf, O_fpgm), p); in CreateT42FromTTGlyphs()
2444 gID[i] = (sal_uInt16)glyfAdd(glyf, GetTTRawGlyphData(ttf, glyphArray[i]), ttf); in CreateT42FromTTGlyphs()
2458 fprintf(outf, "%%- Font subset generated from a source font file: '%s'\n", ttf->fname); in CreateT42FromTTGlyphs()
2459 fprintf(outf, "%%- Original font name: %s\n", ttf->psname); in CreateT42FromTTGlyphs()
2460 fprintf(outf, "%%- Original font family: %s\n", ttf->family); in CreateT42FromTTGlyphs()
2461 fprintf(outf, "%%- Original font sub-family: %s\n", ttf->subfamily); in CreateT42FromTTGlyphs()
2474 …03 0 1 16#%08X %d 16#%08X 16#%08X] def\n", (unsigned int)rtl_crc32(0, ttf->ptr, ttf->fsize), (unsi… in CreateT42FromTTGlyphs()
2496 int MapString(TrueTypeFont *ttf, sal_uInt16 *str, int nchars, sal_uInt16 *glyphArray, int bvertical) in MapString() argument
2501 if (ttf->cmapType == CMAP_NOT_USABLE ) return -1; in MapString()
2510 switch (ttf->cmapType) { in MapString()
2512 if( ttf->mapper == getGlyph0 ) { in MapString()
2539 cp[i] = (sal_uInt16)ttf->mapper(ttf->cmap, cp[i]); in MapString()
2541 cp[i] = (sal_uInt16)UseGSUB(ttf,cp[i],bvertical); in MapString()
2546 sal_uInt16 MapChar(TrueTypeFont *ttf, sal_uInt16 ch, int bvertical) in MapChar() argument
2548 switch (ttf->cmapType) { in MapChar()
2551 if( ttf->mapper == getGlyph0 && ( ch & 0xf000 ) == 0xf000 ) in MapChar()
2553 return (sal_uInt16)ttf->mapper(ttf->cmap, ch ); in MapChar()
2563 ch = (sal_uInt16)ttf->mapper(ttf->cmap, ch); in MapChar()
2565 ch = (sal_uInt16)UseGSUB(ttf,ch,bvertical); in MapChar()
2569 int DoesVerticalSubstitution( TrueTypeFont *ttf, int bvertical) in DoesVerticalSubstitution() argument
2573 nRet = HasVerticalGSUB( ttf); in DoesVerticalSubstitution()
2579 int GetTTGlyphCount( TrueTypeFont* ttf ) in GetTTGlyphCount() argument
2581 return ttf->nglyphs; in GetTTGlyphCount()
2584 bool GetSfntTable( TrueTypeFont* ttf, int nSubtableIndex, in GetSfntTable() argument
2589 *pRawLength = ttf->tlens[ nSubtableIndex ]; in GetSfntTable()
2590 *ppRawBytes = ttf->tables[ nSubtableIndex ]; in GetSfntTable()
2595 TTSimpleGlyphMetrics *GetTTSimpleGlyphMetrics(TrueTypeFont *ttf, sal_uInt16 *glyphArray, int nGlyph… in GetTTSimpleGlyphMetrics() argument
2602 n = ttf->numberOfHMetrics; in GetTTSimpleGlyphMetrics()
2603 pTable = getTable( ttf, O_hmtx ); in GetTTSimpleGlyphMetrics()
2604 nTableSize = getTableSize( ttf, O_hmtx ); in GetTTSimpleGlyphMetrics()
2606 n = ttf->numOfLongVerMetrics; in GetTTSimpleGlyphMetrics()
2607 pTable = getTable( ttf, O_vmtx ); in GetTTSimpleGlyphMetrics()
2608 nTableSize = getTableSize( ttf, O_vmtx ); in GetTTSimpleGlyphMetrics()
2617 const int UPEm = ttf->unitsPerEm; in GetTTSimpleGlyphMetrics()
2627 if( glyphID < ttf->nglyphs ) in GetTTSimpleGlyphMetrics()
2650 TTSimpleGlyphMetrics *GetTTSimpleCharMetrics(TrueTypeFont * ttf, sal_uInt16 firstChar, int nChars, … in GetTTSimpleCharMetrics() argument
2659 if ((n = MapString(ttf, str, nChars, 0, mode)) != -1) { in GetTTSimpleCharMetrics()
2660 res = GetTTSimpleGlyphMetrics(ttf, str, n, mode); in GetTTSimpleCharMetrics()
2669 void GetTTGlobalFontInfo(TrueTypeFont *ttf, TTGlobalFontInfo *info) in GetTTGlobalFontInfo() argument
2671 int UPEm = ttf->unitsPerEm; in GetTTGlobalFontInfo()
2675 info->family = ttf->family; in GetTTGlobalFontInfo()
2676 info->ufamily = ttf->ufamily; in GetTTGlobalFontInfo()
2677 info->subfamily = ttf->subfamily; in GetTTGlobalFontInfo()
2678 info->usubfamily = ttf->usubfamily; in GetTTGlobalFontInfo()
2679 info->psname = ttf->psname; in GetTTGlobalFontInfo()
2680 info->symbolEncoded = (ttf->cmapType == CMAP_MS_Symbol); in GetTTGlobalFontInfo()
2682 const sal_uInt8* table = getTable(ttf, O_OS2); in GetTTGlobalFontInfo()
2691 if (getTableSize(ttf, O_OS2) > 68) { in GetTTGlobalFontInfo()
2702 if (ttf->cmapType == CMAP_MS_Unicode) { in GetTTGlobalFontInfo()
2711 if( getTable(ttf, O_CFF) ) in GetTTGlobalFontInfo()
2715 table = getTable(ttf, O_post); in GetTTGlobalFontInfo()
2716 if (table && getTableSize(ttf, O_post) >= 12+sizeof(sal_uInt32)) { in GetTTGlobalFontInfo()
2721 table = getTable(ttf, O_head); /* 'head' tables is always there */ in GetTTGlobalFontInfo()
2728 table = getTable(ttf, O_hhea); in GetTTGlobalFontInfo()
2735 table = getTable(ttf, O_vhea); in GetTTGlobalFontInfo()
2743 void KernGlyphs(TrueTypeFont *ttf, sal_uInt16 *glyphs, int nglyphs, int wmode, KernData *kern) in KernGlyphs() argument
2751 switch (ttf->kerntype) { in KernGlyphs()
2752 case KT_APPLE_NEW: KernGlyphsPrim1(ttf, glyphs, nglyphs, wmode, kern); return; in KernGlyphs()
2753 case KT_MICROSOFT: KernGlyphsPrim2(ttf, glyphs, nglyphs, wmode, kern); return; in KernGlyphs()
2759 GlyphData *GetTTRawGlyphData(TrueTypeFont *ttf, sal_uInt32 glyphID) in GetTTRawGlyphData() argument
2761 const sal_uInt8* glyf = getTable(ttf, O_glyf); in GetTTRawGlyphData()
2762 const sal_uInt8* hmtx = getTable(ttf, O_hmtx); in GetTTRawGlyphData()
2765 if( glyphID >= ttf->nglyphs ) in GetTTRawGlyphData()
2769 sal_uInt32 length = getTableSize( ttf, O_glyf ); 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()
2792 n = GetTTGlyphPoints(ttf, glyphID, &cp); in GetTTRawGlyphData()
2807 if (glyphID < ttf->numberOfHMetrics) { in GetTTRawGlyphData()
2811 d->aw = GetUInt16(hmtx, 4 * (ttf->numberOfHMetrics - 1), 1); in GetTTRawGlyphData()
2812 … d->lsb = GetInt16(hmtx + ttf->numberOfHMetrics * 4, (glyphID - ttf->numberOfHMetrics) * 2, 1); in GetTTRawGlyphData()
2818 int GetTTNameRecords(TrueTypeFont *ttf, NameRecord **nr) in GetTTNameRecords() argument
2820 const sal_uInt8* table = getTable(ttf, O_name); in GetTTNameRecords()
2821 int nTableSize = getTableSize(ttf, O_name ); in GetTTNameRecords()
2856 …if( rec_string > (sal_uInt8*)ttf->ptr && rec_string < ((sal_uInt8*)ttf->ptr + ttf->fsize - rec[i].… in GetTTNameRecords()
2865 i, rec[i].nameID, ttf->fname ); in GetTTNameRecords()