Lines Matching refs:table
500 const sal_uInt8* table = getTable( ttf, O_hmtx ); in GetMetrics() local
503 if (!table || !ttf->numberOfHMetrics) return; in GetMetrics()
506 metrics->aw = GetUInt16(table, 4 * glyphID, 1); in GetMetrics()
507 metrics->lsb = GetInt16(table, 4 * glyphID + 2, 1); 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()
518 metrics->ah = GetUInt16(table, 4 * glyphID, 1); in GetMetrics()
519 metrics->tsb = GetInt16(table, 4 * glyphID + 2, 1); 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()
531 const sal_uInt8* table = getTable( ttf, O_glyf ); in GetSimpleTTOutline() local
542 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetSimpleTTOutline()
624 const sal_uInt8* table = getTable( ttf, O_glyf ); in GetCompoundTTOutline() local
636 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetCompoundTTOutline()
827 const sal_uInt8 *table = getTable( ttf, O_glyf ); in GetTTGlyphOutline() local
838 const sal_uInt8* ptr = table + ttf->goffsets[glyphID]; in GetTTGlyphOutline()
1093 const sal_uInt8* table = getTable( t, O_name ); in GetNames() local
1104 sal_uInt16 n = GetUInt16(table, 2, 1); in GetNames()
1114 if ((r = findname(table, n, 3, 1, 0x0409, 6)) != -1) in GetNames()
1115 t->psname = nameExtract(table, nTableSize, r, 1, NULL); in GetNames()
1116 if ( ! t->psname && (r = findname(table, n, 1, 0, 0, 6)) != -1) in GetNames()
1117 t->psname = nameExtract(table, nTableSize, r, 0, NULL); in GetNames()
1118 if ( ! t->psname && (r = findname(table, n, 3, 0, 0x0409, 6)) != -1) in GetNames()
1121 t->psname = nameExtract(table, nTableSize, r, 1, NULL); in GetNames()
1124 if ( ! t->psname && (r = findname(table, n, 2, 2, 0, 6)) != -1) in GetNames()
1126 t->psname = nameExtract(table, nTableSize, r, 0, NULL); in GetNames()
1153 if ((r = findname(table, n, 0, 0, 0, 1)) != -1) in GetNames()
1154 t->family = nameExtract(table, nTableSize, r, 1, &t->ufamily); in GetNames()
1155 if ( ! t->family && (r = findname(table, n, 3, 1, 0x0409, 1)) != -1) in GetNames()
1156 t->family = nameExtract(table, nTableSize, r, 1, &t->ufamily); in GetNames()
1157 if ( ! t->family && (r = findname(table, n, 1, 0, 0, 1)) != -1) in GetNames()
1158 t->family = nameExtract(table, nTableSize, r, 0, NULL); in GetNames()
1159 if ( ! t->family && (r = findname(table, n, 3, 1, 0x0411, 1)) != -1) in GetNames()
1160 t->family = nameExtract(table, nTableSize, r, 1, &t->ufamily); in GetNames()
1161 if ( ! t->family && (r = findname(table, n, 3, 0, 0x0409, 1)) != -1) in GetNames()
1162 t->family = nameExtract(table, nTableSize, r, 1, &t->ufamily); in GetNames()
1171 if ((r = findname(table, n, 1, 0, 0, 2)) != -1) in GetNames()
1172 t->subfamily = nameExtract(table, nTableSize, r, 0, &t->usubfamily); in GetNames()
1173 if ( ! t->subfamily && (r = findname(table, n, 3, 1, 0x0409, 2)) != -1) in GetNames()
1174 t->subfamily = nameExtract(table, nTableSize, r, 1, &t->usubfamily); in GetNames()
1395 const sal_uInt8* table = getTable(ttf, O_cmap); in FindCmap() local
1397 sal_uInt16 ncmaps = GetUInt16(table, 2, 1); in FindCmap()
1416 pID = GetUInt16(table, 4 + i * 8, 1); in FindCmap()
1417 eID = GetUInt16(table, 6 + i * 8, 1); in FindCmap()
1418 offset = GetUInt32(table, 8 + i * 8, 1); in FindCmap()
1421 if( (table - ttf->ptr) + offset > (sal_uInt32)ttf->fsize ) in FindCmap()
1449 ttf->cmap = table + ThreeOne; in FindCmap()
1452 ttf->cmap = table + ThreeTwo; in FindCmap()
1455 ttf->cmap = table + ThreeThree; in FindCmap()
1458 ttf->cmap = table + ThreeFour; in FindCmap()
1461 ttf->cmap = table + ThreeFive; in FindCmap()
1464 ttf->cmap = table + ThreeSix; in FindCmap()
1467 ttf->cmap = table + ThreeZero; in FindCmap()
1494 const sal_uInt8* table = getTable(ttf, O_kern); in GetKern() local
1497 if( !table ) in GetKern()
1500 …if (GetUInt16(table, 0, 1) == 0) { /* Traditional Microsoft style t… in GetKern()
1501 ttf->nkern = GetUInt16(table, 2, 1); in GetKern()
1506 ptr = table + 4; in GetKern()
1520 …if (GetUInt32(table, 0, 1) == 0x00010000) { /* MacOS style kern tables: fixe… in GetKern()
1521 ttf->nkern = GetUInt32(table, 4, 1); in GetKern()
1526 ptr = table + 8; in GetKern()
1872 const sal_uInt8* table = getTable(t, O_maxp); in doOpenTTFont() local
1873 t->nglyphs = GetUInt16(table, 4, 1); in doOpenTTFont()
1875 table = getTable(t, O_head); in doOpenTTFont()
1876 t->unitsPerEm = GetUInt16(table, 18, 1); in doOpenTTFont()
1877 indexfmt = GetInt16(table, 50, 1); in doOpenTTFont()
1889 table = getTable(t, O_loca); in doOpenTTFont()
1894 …t->goffsets[i] = indexfmt ? GetUInt32(table, i << 2, 1) : (sal_uInt32)GetUInt16(table, i << 1, 1) … in doOpenTTFont()
1904 table = getTable(t, O_hhea); in doOpenTTFont()
1905 t->numberOfHMetrics = (table != 0) ? GetUInt16(table, 34, 1) : 0; in doOpenTTFont()
1907 table = getTable(t, O_vhea); in doOpenTTFont()
1908 t->numOfLongVerMetrics = (table != 0) ? GetUInt16(table, 34, 1) : 0; in doOpenTTFont()
1999 const sal_uInt8* table = getTable(ttf, O_head); in CreateT3FromTTGlyphs() local
2055 …fprintf(outf, h01, GetInt16(table, 0, 1), GetUInt16(table, 2, 1), GetInt16(table, 4, 1), GetUInt16… in CreateT3FromTTGlyphs()
2075 …s(UPEm, GetInt16(table, 36, 1)), XUnits(UPEm, GetInt16(table, 38, 1)), XUnits(UPEm, GetInt16(table… in CreateT3FromTTGlyphs()
2682 const sal_uInt8* table = getTable(ttf, O_OS2); in GetTTGlobalFontInfo() local
2683 if (table) { in GetTTGlobalFontInfo()
2684 info->weight = GetUInt16(table, 4, 1); in GetTTGlobalFontInfo()
2685 info->width = GetUInt16(table, 6, 1); in GetTTGlobalFontInfo()
2692 info->typoAscender = XUnits(UPEm,GetInt16(table, 68, 1)); in GetTTGlobalFontInfo()
2693 info->typoDescender = XUnits(UPEm, GetInt16(table, 70, 1)); in GetTTGlobalFontInfo()
2694 info->typoLineGap = XUnits(UPEm, GetInt16(table, 72, 1)); in GetTTGlobalFontInfo()
2695 info->winAscent = XUnits(UPEm, GetUInt16(table, 74, 1)); in GetTTGlobalFontInfo()
2696 info->winDescent = XUnits(UPEm, GetUInt16(table, 76, 1)); in GetTTGlobalFontInfo()
2700 info->winDescent = XUnits(UPEm, GetInt16(table, 76,1)); in GetTTGlobalFontInfo()
2704 info->ur1 = GetUInt32(table, 42, 1); in GetTTGlobalFontInfo()
2705 info->ur2 = GetUInt32(table, 46, 1); in GetTTGlobalFontInfo()
2706 info->ur3 = GetUInt32(table, 50, 1); in GetTTGlobalFontInfo()
2707 info->ur4 = GetUInt32(table, 54, 1); in GetTTGlobalFontInfo()
2709 memcpy(info->panose, table + 32, 10); in GetTTGlobalFontInfo()
2710 info->typeFlags = GetUInt16( table, 8, 1 ); in GetTTGlobalFontInfo()
2715 table = getTable(ttf, O_post); in GetTTGlobalFontInfo()
2716 if (table && getTableSize(ttf, O_post) >= 12+sizeof(sal_uInt32)) { in GetTTGlobalFontInfo()
2717 info->pitch = GetUInt32(table, 12, 1); in GetTTGlobalFontInfo()
2718 info->italicAngle = GetInt32(table, 4, 1); in GetTTGlobalFontInfo()
2721 table = getTable(ttf, O_head); /* 'head' tables is always there */ in GetTTGlobalFontInfo()
2722 info->xMin = XUnits(UPEm, GetInt16(table, 36, 1)); in GetTTGlobalFontInfo()
2723 info->yMin = XUnits(UPEm, GetInt16(table, 38, 1)); in GetTTGlobalFontInfo()
2724 info->xMax = XUnits(UPEm, GetInt16(table, 40, 1)); in GetTTGlobalFontInfo()
2725 info->yMax = XUnits(UPEm, GetInt16(table, 42, 1)); in GetTTGlobalFontInfo()
2726 info->macStyle = GetInt16(table, 44, 1); in GetTTGlobalFontInfo()
2728 table = getTable(ttf, O_hhea); in GetTTGlobalFontInfo()
2729 if (table) { in GetTTGlobalFontInfo()
2730 info->ascender = XUnits(UPEm, GetInt16(table, 4, 1)); in GetTTGlobalFontInfo()
2731 info->descender = XUnits(UPEm, GetInt16(table, 6, 1)); in GetTTGlobalFontInfo()
2732 info->linegap = XUnits(UPEm, GetInt16(table, 8, 1)); in GetTTGlobalFontInfo()
2735 table = getTable(ttf, O_vhea); in GetTTGlobalFontInfo()
2736 if (table) { in GetTTGlobalFontInfo()
2737 info->vascent = XUnits(UPEm, GetInt16(table, 4, 1)); in GetTTGlobalFontInfo()
2738 info->vdescent = XUnits(UPEm, GetInt16(table, 6, 1)); in GetTTGlobalFontInfo()
2820 const sal_uInt8* table = getTable(ttf, O_name); in GetTTNameRecords() local
2831 sal_uInt16 n = GetUInt16(table, 2, 1); in GetTTNameRecords()
2832 int nStrBase = GetUInt16(table, 4, 1); in GetTTNameRecords()
2841 int nStrOffset = GetUInt16(table + 6, 10 + 12 * i, 1); in GetTTNameRecords()
2842 rec[i].platformID = GetUInt16(table + 6, 12 * i, 1); in GetTTNameRecords()
2843 rec[i].encodingID = GetUInt16(table + 6, 2 + 12 * i, 1); in GetTTNameRecords()
2844 rec[i].languageID = GetUInt16(table + 6, 4 + 12 * i, 1); in GetTTNameRecords()
2845 rec[i].nameID = GetUInt16(table + 6, 6 + 12 * i, 1); in GetTTNameRecords()
2846 rec[i].slen = GetUInt16(table + 6, 8 + 12 * i, 1); in GetTTNameRecords()
2854 const sal_uInt8* rec_string = table + nStrBase + nStrOffset; in GetTTNameRecords()