Skip to content

Commit

Permalink
tweak comment
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@85663 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Dec 8, 2023
1 parent 581c72c commit fc0691c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/library/grDevices/src/devPS.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,13 +926,17 @@ PostScriptMetricInfo(int c, double *ascent, double *descent, double *width,
are all numbers. If a character makes no marks on the page
(for example, the space character), this field reads B 0 0 0 0,
and these values are not considered when computing the FontBBox.
Also NBSP and Euro in some fonts. Should that be skipped?
Also NBSP and Euro in some fonts. Should that be
skipped for acent and descent?
else if
(metrics->CharInfo[c].BBox[0] == 0 &&
metrics->CharInfo[c].BBox[1] == 0 &&
metrics->CharInfo[c].BBox[2] == 0 &&
metrics->CharInfo[c].BBox[3] == 0) {
warning(_("character 0x%02x in encoding %s makes no mark"), c, encoding);
wx += w;
}
*/
else {
wx += w;
Expand Down

0 comments on commit fc0691c

Please sign in to comment.