3220 |
|
|
3221 |
/* If FONTNAME is actually a fontset name, get ASCII font name of it. */ |
/* If FONTNAME is actually a fontset name, get ASCII font name of it. */ |
3222 |
fontset = fs_query_fontset (fontname, 0); |
fontset = fs_query_fontset (fontname, 0); |
3223 |
if (fontset >= 0) |
if (fontset > 0) |
3224 |
font_name = XSTRING (fontset_ascii (fontset))->data; |
font_name = XSTRING (fontset_ascii (fontset))->data; |
3225 |
|
else if (fontset == 0) |
3226 |
|
{ |
3227 |
|
if (may_fail_p) |
3228 |
|
return 0; |
3229 |
|
abort (); |
3230 |
|
} |
3231 |
|
|
3232 |
/* Check if FONT_NAME is surely available on the system. Usually |
/* Check if FONT_NAME is surely available on the system. Usually |
3233 |
FONT_NAME is already cached for the frame F and FS_LOAD_FONT |
FONT_NAME is already cached for the frame F and FS_LOAD_FONT |
4162 |
if (!NILP (tmp)) |
if (!NILP (tmp)) |
4163 |
value = tmp; |
value = tmp; |
4164 |
else if (EQ (attr, QCfontset)) |
else if (EQ (attr, QCfontset)) |
4165 |
error ("Invalid fontset", XSTRING (value)->data); |
signal_error ("Invalid fontset name", value); |
4166 |
|
|
4167 |
if (EQ (attr, QCfont)) |
if (EQ (attr, QCfont)) |
4168 |
{ |
{ |