mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 18:00:40 -08:00
(font_unparse_xlfd): If pixel_size is zero, make the
PIXEL_SIZE part a wild card.
This commit is contained in:
parent
390106219e
commit
2d477dcab8
1 changed files with 2 additions and 1 deletions
|
|
@ -1153,8 +1153,9 @@ font_unparse_xlfd (font, pixel_size, name, nbytes)
|
|||
i = XINT (val);
|
||||
if (i > 0)
|
||||
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", i) + 1;
|
||||
else /* i == 0 */
|
||||
else if (pixel_size > 0)
|
||||
len += sprintf (f[XLFD_PIXEL_INDEX], "%d-*", pixel_size) + 1;
|
||||
f[XLFD_PIXEL_INDEX] = "*-*", len += 4;
|
||||
}
|
||||
else if (FLOATP (val))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue