|
1107 | 1107 | \endaltitem |
1108 | 1108 |
|
1109 | 1109 | \beginaltitem {embolden} |
1110 | | - A factor, defined as a decimal number. |
| 1110 | + A factor, defined as a decimal number. This fakes a bold font by |
| 1111 | + stroking the glyph outlines with an outline of a constant width. This |
| 1112 | + is typographically not ideal, but can give acceptable output when the |
| 1113 | + factor and is rendered correctly by the PDF viewer. However, many PDF |
| 1114 | + viewers---most notably Chrome---completely misrender the effect at low |
| 1115 | + zoom levels, so you should only use this feature on fonts typeset at |
| 1116 | + large sizes, if you know for certain which PDF viewers will be used to |
| 1117 | + view the document, or if you're printing to paper. |
| 1118 | + |
| 1119 | + \identifier{luaotfload} defines the \identifier{embolden} feature to |
| 1120 | + give the same results as the same feature in \XeTeX, so its definition |
| 1121 | + is rather obscure: internally, the \identifier{embolden} parameter is |
| 1122 | + divided by~10, multiplied by the font size in \TeX{} points |
| 1123 | + (\verb|pt|), and then directly written to the PDF file as the stroke |
| 1124 | + width (therefore treating \TeX{} points as PostScript points |
| 1125 | + (\verb|bp|)). As an additional feature not present in \XeTeX, if you |
| 1126 | + set the \identifier{embolden} parameter to exactly~0, \LuaTeX{} will |
| 1127 | + stroke the font without setting the stroke width, meaning that the |
| 1128 | + stroke width will be inherited from the outer PDF graphics state. |
| 1129 | + |
| 1130 | + Setting \identifier{embolden} to values below~0.5 is only useful for |
| 1131 | + print documents, since many PDF viewers will always render the stroke |
| 1132 | + widths at some greater minimum value; setting \identifier{embolden} to |
| 1133 | + values above~20 is rarely useful since if the stroke overlaps with |
| 1134 | + itself, there will be significant visual artifacts. Useful values are |
| 1135 | + generally between~1 and~10. |
1111 | 1136 |
|
1112 | 1137 | For example |
1113 | 1138 |
|
|
0 commit comments