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;
67 pFontInfo->constantMetrics = FALSE;
68 pFontInfo->terminalFont = FALSE;
70 if (pFontInfo->minbounds.characterWidth ==
71 pFontInfo->maxbounds.characterWidth)
72 pFontInfo->constantWidth = TRUE;
74 pFontInfo->constantWidth = FALSE;
76 if ((pFontInfo->minbounds.leftSideBearing >= 0) &&
77 (pFontInfo->maxOverlap <= 0) &&
78 (pFontInfo->minbounds.ascent >= -pFontInfo->fontDescent) &&
79 (pFontInfo->maxbounds.ascent <= pFontInfo->fontAscent) &&
80 (-pFontInfo->minbounds.descent <= pFontInfo->fontAscent) &&
81 (pFontInfo->maxbounds.descent <= pFontInfo->fontDescent))
82 pFontInfo->inkInside = TRUE;
84 pFontInfo->inkInside = FALSE;
88 FontCouldBeTerminal(FontInfoPtr pFontInfo)
90 if ((pFontInfo->minbounds.leftSideBearing >= 0) &&
91 (pFontInfo->maxbounds.rightSideBearing <=
92 pFontInfo->maxbounds.characterWidth) &&
93 (pFontInfo->minbounds.characterWidth ==
94 pFontInfo->maxbounds.characterWidth) &&
95 (pFontInfo->maxbounds.ascent <= pFontInfo->fontAscent) &&
96 (pFontInfo->maxbounds.descent <= pFontInfo->fontDescent) &&
97 (pFontInfo->maxbounds.leftSideBearing != 0 ||
98 pFontInfo->minbounds.rightSideBearing !=
99 pFontInfo->minbounds.characterWidth ||
100 pFontInfo->minbounds.ascent != pFontInfo->fontAscent ||
101 pFontInfo->minbounds.descent != pFontInfo->fontDescent)) {
103 if (pFontInfo->maxbounds.ascent == 0 &&
104 pFontInfo->maxbounds.descent == 0)