Enable anti-alias drawing.
+ <li> --family FAMILY
+
+ Prefer a font whose family name is FAMILY.
+
+ <li> --language LANG
+
+ Prefer a font specified for the language LANG. LANG must be a
+ 2-letter code of ISO 630 (e.g. "en" for English).
+
<li> -q
Quiet mode. Don't print any messages.
¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹½èÍý¤ò¹Ô¤¦¡£
+ <li> --family FAMILY
+
+ ¥Õ¥¡¥ß¥ê¥£Ì¾¤¬ FAMILY ¤Î¥Õ¥©¥ó¥È¤òÍ¥ÀèŪ¤Ë»È¤¦¡£
+
+ <li> --language LANG
+
+ ¸À¸ì LANG ÍѤ˻ØÄꤵ¤ì¤¿¥Õ¥©¥ó¥È¤òÍ¥ÀèŪ¤Ë»È¤¦¡£LANG ¤Ï ISO 630 ¤Î
+ £²Ê¸»ú¥³¡¼¥É¡ÊÎ㡧±Ñ¸ì¤Ï "en" ¡Ë¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
+
<li> -q
°ìÀڤΥá¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¤Ê¤¤¡£
char *filter = NULL;
int paper_width, paper_height;
int anti_alias = 0;
+ char *family_name = NULL;
+ char *langu_name = NULL;
int i;
int page_index;
gdImagePtr image;
{
anti_alias = 1;
}
+ else if (! strcmp (argv[i], "--family"))
+ {
+ family_name = argv[++i];
+ }
+ else if (! strcmp (argv[i], "--language"))
+ {
+ lang_name = argv[++i];
+ }
else if (argv[i][0] != '-')
{
fp = fopen (argv[i], "r");
FATAL_ERROR ("%s\n", "Fail to decode the input file or stream!");
len = mtext_len (mt);
+ if (lang_name)
+ mtext_put_prop (mt, 0, len, Mlanguage, msymbol (lang_name));
if (paper == PAPER_NOLIMIT)
paper_width = paper_height = margin = 0;
mface_put_prop (face, Mfontset, fontset);
mface_put_prop (face, Msize, (void *) (fontsize * dpi / 100));
+ if (family_name)
+ mface_put_prop (face, Mfamily, msymbol (family_name));
+
p = mplist_add (plist, Mdevice, msymbol ("gd"));
p = mplist_add (p, Mface, face);
m17n_object_unref (face);