Lines Matching defs:pFontInfo
41 FontComputeInfoAccelerators(FontInfoPtr pFontInfo)
43 pFontInfo->noOverlap = FALSE;
44 if (pFontInfo->maxOverlap <= pFontInfo->minbounds.leftSideBearing)
45 pFontInfo->noOverlap = TRUE;
47 if ((pFontInfo->minbounds.ascent == pFontInfo->maxbounds.ascent) &&
48 (pFontInfo->minbounds.descent == pFontInfo->maxbounds.descent) &&
49 (pFontInfo->minbounds.leftSideBearing ==
50 pFontInfo->maxbounds.leftSideBearing) &&
51 (pFontInfo->minbounds.rightSideBearing ==
52 pFontInfo->maxbounds.rightSideBearing) &&
53 (pFontInfo->minbounds.characterWidth ==
54 pFontInfo->maxbounds.characterWidth) &&
55 (pFontInfo->minbounds.attributes == pFontInfo->maxbounds.attributes)) {
56 pFontInfo->constantMetrics = TRUE;
57 if ((pFontInfo->maxbounds.leftSideBearing == 0) &&
58 (pFontInfo->maxbounds.rightSideBearing ==
59 pFontInfo->maxbounds.characterWidth) &&
60 (pFontInfo->maxbounds.ascent == pFontInfo->fontAscent) &&
61 (pFontInfo->maxbounds.descent == pFontInfo->fontDescent))
62 pFontInfo->terminalFont = TRUE;
64 pFontInfo->terminalFont = FALSE;
66 pFontInfo->constantMetrics = FALSE;
67 pFontInfo->terminalFont = FALSE;
69 if (pFontInfo->minbounds.characterWidth == pFontInfo->maxbounds.characterWidth)
70 pFontInfo->constantWidth = TRUE;
72 pFontInfo->constantWidth = FALSE;
74 if ((pFontInfo->minbounds.leftSideBearing >= 0) &&
75 (pFontInfo->maxOverlap <= 0) &&
76 (pFontInfo->minbounds.ascent >= -pFontInfo->fontDescent) &&
77 (pFontInfo->maxbounds.ascent <= pFontInfo->fontAscent) &&
78 (-pFontInfo->minbounds.descent <= pFontInfo->fontAscent) &&
79 (pFontInfo->maxbounds.descent <= pFontInfo->fontDescent))
80 pFontInfo->inkInside = TRUE;
82 pFontInfo->inkInside = FALSE;
86 FontCouldBeTerminal(FontInfoPtr pFontInfo)
88 if ((pFontInfo->minbounds.leftSideBearing >= 0) &&
89 (pFontInfo->maxbounds.rightSideBearing <= pFontInfo->maxbounds.characterWidth) &&
90 (pFontInfo->minbounds.characterWidth == pFontInfo->maxbounds.characterWidth) &&
91 (pFontInfo->maxbounds.ascent <= pFontInfo->fontAscent) &&
92 (pFontInfo->maxbounds.descent <= pFontInfo->fontDescent) &&
93 (pFontInfo->maxbounds.leftSideBearing != 0 ||
94 pFontInfo->minbounds.rightSideBearing != pFontInfo->minbounds.characterWidth ||
95 pFontInfo->minbounds.ascent != pFontInfo->fontAscent ||
96 pFontInfo->minbounds.descent != pFontInfo->fontDescent)) {
98 if (pFontInfo->maxbounds.ascent == 0 &&
99 pFontInfo->maxbounds.descent == 0)