¥Õ¥©¥ó¥È¤È FreeBSD

A Tutorial

$FreeBSD: head/ja_JP.eucJP/articles/fonts/article.xml 39632 2012-10-01 11:56:00Z gabor $

1996 ǯ 8 ·î 7 Æü (¿å)

FreeBSD ¤Ï The FreeBSD Foundation ¤ÎÅÐÏ¿¾¦É¸¤Ç¤¹¡£

Adobe, Acrobat, Acrobat Reader ¤ª¤è¤Ó PostScript ¤Ï ¥¢¥á¥ê¥«¹ç½°¹ñ¤ª¤è¤Ó/¤Þ¤¿¤Ï¤½¤Î¾¤Î¹ñ¤Î Adobe Systems Incorporated ¤ÎÅÐÏ¿¾¦É¸¤Þ¤¿¤Ï¾¦É¸¤Ç¤¹¡£

Apple, FireWire, Mac, Macintosh, Mac OS, Quicktime ¤ª¤è¤Ó TrueType ¤Ï Apple Computer, Inc. ¤Î¾¦É¸¤Ç¡¢ ¥¢¥á¥ê¥«¹ç½°¹ñ¤ª¤è¤Ó¤½¤Î¾¤Î¹ñ¤ÇÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

Linux ¤Ï Linus Torvalds ¤ÎÅÐÏ¿¾¦É¸¤Ç¤¹¡£

Microsoft, IntelliMouse, MS-DOS, Outlook, Windows, Windows Media ¤ª¤è¤Ó Windows NT ¤Ï ¥¢¥á¥ê¥«¹ç½°¹ñ¤ª¤è¤Ó/¤Þ¤¿¤Ï¤½¤Î¾¤Î¹ñ¤Ë¤ª¤±¤ë Microsoft Corporation ¤ÎÅÐÏ¿¾¦É¸¤Þ¤¿¤Ï¾¦É¸¤Ç¤¹¡£

Motif, OSF/1 ¤ª¤è¤Ó UNIX ¤Ï ¥¢¥á¥ê¥«¹ç½°¹ñ¤ª¤è¤Ó¤½¤Î¾¤Î¹ñ¤Ë¤ª¤±¤ë The Open Group ¤ÎÅÐÏ¿¾¦É¸¤Ç¡¢ IT DialTone ¤ª¤è¤Ó The Open Group ¤ÏƱ¤¸¤¯¾¦É¸¤Ç¤¹¡£

À½Â¤¼Ô¤ª¤è¤ÓÈÎÇä¼Ô¤¬À½Éʤò¶èÊ̤¹¤ë¤Î¤Ë ÍѤ¤¤Æ¤¤¤ëɽ¼¨¤Î¿¤¯¤Ï¡¢¾¦É¸¤È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤Îʸ½ñ¤ËÅо줹¤ëɽ¼¨¤Î¤¦¤Á FreeBSD Project ¤¬¤½¤Î¾¦É¸¤ò³Îǧ¤·¤Æ¤¤¤ë¤â¤Î¤Ë¤Ï¡¢¤½¤Îɽ¼¨¤Ë³¤¤¤Æ “™” ¤Þ¤¿¤Ï “®” µ­¹æ¤¬¤ª¤«¤ì¤Æ¤¤¤Þ¤¹¡£

¤³¤³¤Ç¤Ï FreeBSD ¤Î syscons ¥É¥é¥¤¥Ð¤ä X11, Ghostscript, Groff ¤ÇÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤µ¤Þ¤¶¤Þ¤Ê¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£ ¤Þ¤¿¡¢syscons ¥Ç¥£¥¹¥×¥ì¥¤¤ò 80x60 ¹Ô¥â¡¼¥É¤ËÀÚ¤êÂؤ¨¤ëÊýË¡¤ä¡¢ ¾å½Ò¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤òÍøÍѤ¹¤ëÊýË¡¤òÎ㼨¤·¤Þ¤¹¡£


1. ¤Ï¤¸¤á¤Ë

¿ô¿¤¯¤Î¥Õ¥©¥ó¥È¤Î¥½¡¼¥¹¤òÆþ¼ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¤³¤ì¤é¤ò FreeBSD ¤Ç¤É¤Î¤è¤¦¤Ë¤·¤Æ»È¤¦¤«¤Ï¤¢¤Þ¤ê¤è¤¯ÃΤé¤ì¤Æ¤¤¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤½¤ÎÅú¤¨¤Ï¡¢»È¤¤¤¿¤¤¤È»×¤¦¹½À®Í×ÁǤÎÀâÌÀ½ñ¤òÃí°Õ¿¼¤¯Ãµ¤¹¤³¤È¤Ë¤è¤Ã¤Æ¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤·¤«¤·¡¢¤³¤ì¤Ï¤È¤Æ¤â»þ´Ö¤¬¤«¤«¤ëºî¶È¤Ç¤¹¡£ËÜ¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ï¡¢ ¥Õ¥©¥ó¥È¤Ë´Ø¤·¤Æ¶½Ì£¤¬¤¢¤ë¸þ¤­¤Ë¡¢ ¤½¤Î¶áÆ»¤ò¶µ¤¨¤è¤¦¤È»î¤ß¤ë¤â¤Î¤Ç¤¢¤ê¤Þ¤¹¡£


2. ´ðËÜÍѸì

¥Õ¥©¥ó¥È·Á¼°¤Î¼ïÎà¤ä¤½¤ì¤Ë´ØÏ¢¤·¤¿¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¤Ï¿¿ô¸ºß¤·¤Þ¤¹¡£ ¤½¤ÎÆâ¤Ç¤³¤³¤Ç²òÀ⤹¤ë¤â¤Î¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

.pfa¡¢.pfb

PostScript® ¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¡£³ÈÄ¥»Ò .pfa ¤Ï Ascii ·Á¼°¤Î¤½¤·¤Æ³ÈÄ¥»Ò .pfb ¤Ï Binary ·Á¼°¤ò°ÕÌ£¤¹¤ë¡£

.afm

¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤Ë´ØÏ¢¤¹¤ë¥Õ¥©¥ó¥È¥á¥È¥ê¥Ã¥¯¾ðÊó¡£

.pfm

¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤Ë´ØÏ¢¤¹¤ë¥×¥ê¥ó¥¿ÍÑ¥Õ¥©¥ó¥È¥á¥È¥ê¥Ã¥¯¾ðÊó¡£

.ttf

TrueType® ¥Õ¥©¥ó¥È¡£

.fot

TrueType ¥Õ¥©¥ó¥È¤Ø¤Î´ÖÀÜŪ¤Ê»²¾È¥Õ¥¡¥¤¥ë (¼ÂºÝ¤Ë¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¤)¡£

.fon¡¢.fnt

¥¹¥¯¥ê¡¼¥óɽ¼¨Íѥӥåȥޥåץե©¥ó¥È¡£

.fot ¥Õ¥¡¥¤¥ë¤Ï¡¢Windows® ¤ÇÍѤ¤¤é¤ì¡¢ ¼ÂºÝ¤Î TrueType ¥Õ¥©¥ó¥È (.ttf) ¥Õ¥¡¥¤¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ËÎह¤ëÌò³ä¤ò²Ì¤¿¤·¤Þ¤¹¡£ .fon ¥Õ¥©¥ó¥È¤â Windows ¤ÇÍѤ¤¤é¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ FreeBSD ¤Ç¤³¤Î·Á¼°¤Î¥Õ¥©¥ó¥È¤òÍøÍѤ¹¤ëÊýË¡¤òÉ®¼Ô¤ÏÃΤê¤Þ¤»¤ó¡£


3. ¤É¤Î¥Õ¥©¥ó¥È·Á¼°¤òÍøÍѤǤ­¤Þ¤¹¤«?

¤É¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë·Á¼°¤¬Í­ÍѤǤ¢¤ë¤«¤Ï¡¢ ÍøÍѤ¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë°Í¤ê¤Þ¤¹¡£ FreeBSD ¼«¿È¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤ÏÍøÍѤ·¤Þ¤»¤ó¡£ ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à¤ä¥É¥é¥¤¥Ð (¤¢¤ë¤¤¤Ï¤½¤ÎξÊý) ¤Ë¤è¤Ã¤Æ¤Ï¡¢ ¤¢¤ë¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÍøÍѤ¹¤ë¤è¤¦¤Ë¤Ç¤­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ °Ê²¼¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¡¢µÚ¤Ó¡¢ ¥É¥é¥¤¥Ð¤È¤½¤ì¤¬ÍøÍѤǤ­¤ë¥Õ¥©¥ó¥È¥¿¥¤¥×¤Î³ÈÄ¥»Ò¤ÎÂбþɽ¤ò´Êñ¤Ë¼¨¤·¤Þ¤¹¡£

¥É¥é¥¤¥Ð
syscons

.fnt

¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
Ghostscript

.pfa¡¢ .pfb¡¢ .ttf

X11

.pfa¡¢ .pfb

Groff

.pfa¡¢ .afm

Povray

.ttf

³ÈÄ¥»Ò .fnt ¤Ï¶Ë¤á¤ÆÉÑÈˤ˻Ȥï¤ì¤Æ¤¤¤Þ¤¹¡£ (ÌõÃí: ¤³¤Î³ÈÄ¥»Ò¤¬¥Õ¥©¥ó¥È (font) ¤È¤¤¤¦Ì¾Á°¤«¤éÏ¢ÁÛ¤·¤ä¤¹¤¤¤Î¤Ç) ¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ËÆò½¤·¤¿¥Õ¥©¥ó¥È¤òºîÀ®¤·¤è¤¦¤È¤·¤¿ºÝ¤Ë¤Ï¤¤¤Ä¤Ç¤â¡¢ ¤³¤Î³ÈÄ¥»Ò¤¬ÁªÂò¤µ¤ì¤ëÊý¤¬¤½¤¦¤Ç¤Ê¤¤¤È¤­¤è¤ê¤â¤«¤Ê¤ê¿¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤ÈÃø¼Ô¤Ïµ¿¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤³¤Î¤¿¤á¡¢¤³¤Î³ÈÄ¥»Ò¤ò»ý¤Ä¥Õ¥¡¥¤¥ëÁ´¤Æ¤¬Æ±¤¸·Á¼°¤Ë¤Ï¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹¡£ Æäˡ¢.fnt ¥Õ¥¡¥¤¥ë¤Ï FreeBSD ¾å¤Ç¤Ï syscons ¤Ë¤è¤Ã¤ÆÍøÍѤµ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤È MS-DOS® ¤ä Windows ´Ä¶­¤Ç½Ð²ñ¤Ã¤¿ .fnt ¤È¤ÏƱ¤¸·Á¼°¤Ç¤Ï¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ É®¼Ô¤Ï FreeBSD ¤ÇÄ󶡤µ¤ì¤Æ¤¤¤ë°Ê³°¤Î .fnt ¥Õ¥¡¥¤¥ë¤òÍøÍѤ¹¤ë»î¤ß¤Ï°ìÀڹԤäƤ¤¤Þ¤»¤ó¡£


4. ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤ò 80x60 ¹Ô¥â¡¼¥É¤ËÀßÄꤹ¤ë

¤Þ¤º¡¢8x8 ¥µ¥¤¥º¤Î¥Õ¥©¥ó¥È¤¬¥í¡¼¥É¤µ¤ì¤Æ¤¤¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ ¤½¤Î¤¿¤á¤Ë¤Ï¡¢/etc/rc.conf ¤Ë°Ê²¼¤Î¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤Ù¤­¤Ç¤¹ (¥Õ¥©¥ó¥È¤Î̾¾Î¤ò¤¢¤Ê¤¿¤Î locale ¤ËÂбþ¤¹¤ë¤â¤Î¤Ë½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤)¡£

font8x8="iso-8x8"		# font 8x8 from /usr/share/syscons/fonts/* (or NO).

¼ÂºÝ¤Ë¥â¡¼¥É¤òÀÚ¤êÂؤ¨¤ë¥³¥Þ¥ó¥É¤Ï vidcontrol(1) ¤Ç¤¹¡£

% vidcontrol VGA_80x60

vi(1) ¤Î¤è¤¦¤Ê¡¢¤µ¤Þ¤¶¤Þ¤Ê¥¹¥¯¥ê¡¼¥ó»Ø¸þ¤Î¥×¥í¥°¥é¥à¤ËÂФ·¤Æ¡¢ ¸½ºß¤Î²èÌÌ¥µ¥¤¥º¤¬Ê¬¤«¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤«¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï ioctl ¤òÄ̤¸¤Æ (syscons(4) ¤Ê¤É¤Î) ¥³¥ó¥½¡¼¥ë¥É¥é¥¤¥Ð¤Ë¸Æ¤Ó³Ý¤±¤ë¤³¤È¤Ç¹Ô¤ï¤ì¡¢

¤³¤ì¤é¤ò°ìÅ٤˺Ѥޤ»¤ë¤¿¤á¤Ë¡¢ ¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤òµ¯Æ°ÍѤΥ¹¥¯¥ê¥×¥È¤Ë½ñ¤¤¤Æ¤ª¤­¡¢ ¤³¤ì¤ò¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë¼Â¹Ô¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤ÎÊýË¡¤Ç¤Ï /etc/rc.conf ¤Ë°Ê²¼¤Î¹Ô¤òÄɲä·¤Þ¤¹

allscreens_flags="VGA_80x60"	# Set this vidcontrol mode for all virtual screens
	 

»²¹Íʸ¸¥: rc.conf(5)¡¢vidcontrol(1)


5. ¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤ò X11 ¤ÇÍøÍѤ¹¤ë

X11 ¤Ç¤Ï¡¢ .pfa ·Á¼°¡¢¤â¤·¤¯¤Ï¡¢ .pfb ·Á¼°¤Î¥Õ¥©¥ó¥È¤Î¤É¤Á¤é¤Ç¤âÍøÍѤǤ­¤Þ¤¹¡£ X11 ¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¤Ï /usr/X11R6/lib/X11/fonts °Ê²¼¤Î¤µ¤Þ¤¶¤Þ¤Ê¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤ËÃÖ¤«¤ì¤Æ¤¤¤Þ¤¹¡£ ¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë fonts.dir ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤˤè¤Ã¤Æ¡¢ ¤½¤ì¤¾¤ì¤Î¥Õ¥©¥ó¥È¤Î¥Õ¥¡¥¤¥ë¤È X11 ¾å¤Ç¤Î¥Õ¥©¥ó¥È̾¤¬´ØÏ¢ÉÕ¤±¤é¤ì¤Æ¤¤¤Þ¤¹¡£

Type1 ¤È¤¤¤¦Ì¾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬´û¤Ë¸ºß¤·¤Æ¤¤¤Þ¤¹¡£ ¿·¤·¤¤¥Õ¥©¥ó¥È¤òÄɲ乤ëºÇ¤â´Êñ¤ÊÊýË¡¤Ï¡¢ ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¤½¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¤³¤È¤Ç¤¹¡£ ¿·¤·¤¤¥Õ¥©¥ó¥È¤ÏÊ̤ʥǥ£¥ì¥¯¥È¥ê¤ËÃÖ¤¤¤Æ¤ª¤­¡¢Type1 ¥Ç¥£¥ì¥¯¥È¥ê¤ËÄɲåե©¥ó¥È¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÄ¥¤ëÊý¤¬¤è¤êÍ¥¤ì¤Æ¤¤¤Þ¤¹¡£ ¤Ê¤¼¤Ê¤é¡¢¤³¤ÎÊýË¡¤ò¤È¤ë¤³¤È¤Ç¥ª¥ê¥¸¥Ê¥ë¤Ç¶¡µë¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤Èº®Í𤹤뤳¤È¤Ê¤¯¡¢ ¤³¤ì¤é¤Î¥Õ¥©¥ó¥È¤òÄɲä·¤¿Àפò»Ä¤¹¤³¤È¤¬¤è¤ê´Êñ¤Ë¤Ç¤­¤ë¤«¤é¤Ç¤¹¡£ ¤³¤ÎÊýË¡¤Ï¡¢Î㤨¤Ð¡¢¼¡¤Î¤è¤¦¤Ë¹Ô¤¤¤Þ¤¹¡£

¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÆþ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤·¤Þ¤¹¡£
% mkdir -p /usr/local/share/fonts/type1
% cd /usr/local/share/fonts/type1

¤³¤³¤Ë .pfa ¤Þ¤¿¤Ï .pfb ¥Õ¥¡¥¤¥ë¤È .afm ¥Õ¥¡¥¤¥ë¤òÃÖ¤­¤Þ¤¹¡£
¥Õ¥©¥ó¥È¤Î readme ¥Õ¥¡¥¤¥ë¤ä¤½¤Î¾¤Î¥É¥­¥å¥á¥ó¥È¤ò¤³¤Î¥Ç¥£
¥ì¥¯¥È¥ê¤ËÃÖ¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
% cp /cdrom/fonts/atm/showboat/showboat.pfb .
% cp /cdrom/fonts/atm/showboat/showboat.afm .

¥Õ¥©¥ó¥È¤Î¥¯¥í¥¹¥ê¥Õ¥¡¥ì¥ó¥¹¤Î¤¿¤á¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÊѹ¹¤·¤Þ¤¹¡£
% echo showboat - InfoMagic CICA, Dec 1994, /fonts/atm/showboat >>INDEX

¤µ¤Æ¡¢¿·¤·¤¤¥Õ¥©¥ó¥È¤ò X11 ¤ÇÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢ ¤½¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÍøÍѤǤ­¤ë¤è¤¦¤Ë¤·¤Æ¡¢ ¥Õ¥©¥ó¥È̾¤Î¥Õ¥¡¥¤¥ë¤ò¹¹¿·¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ X11 ¤Î¥Õ¥©¥ó¥È̾¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

-bitstream-charter-medium-r-normal-xxx-0-0-0-0-p-0-iso8859-1
     |        |      |    |   |     |  | | | | | |    \    \
     |        |      |    |   |     \  \ \ \ \ \ \     +----+- character set
     |        |      |    |   \      \  \ \ \ \ \ +- average width
     |        |      |    |    \      \  \ \ \ \ +- spacing
     |        |      |    \     \      \  \ \ \ +- vertical res.
     |        |      |     \     \      \  \ \ +- horizontal res.
     |        |      |      \     \      \  \ +- points
     |        |      |       \     \      \  +- pixels
     |        |      |        \     \      \
  foundry  family  weight   slant  width  additional style

¿·¤·¤¤¥Õ¥©¥ó¥È¤½¤ì¤¾¤ì¤ËÂФ·¤Æ¡¢¿·¤·¤¤Ì¾Á°¤òÉÕ¤±¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥Õ¥©¥ó¥ÈÉÕ°¤Î¥É¥­¥å¥á¥ó¥È¤Ë¥Õ¥©¥ó¥È¤Ë´Ø¤¹¤ë¾ðÊ󤬤¢¤ì¤Ð¡¢ ̾Á°¤òºî¤ëºÝ¤Î´ð¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤Î¤è¤¦¤Ê¾ðÊ󤬤ʤ¤¾ì¹ç¤Ï¡¢ ¥Õ¥©¥ó¥È¤ËÂФ·¤Æ strings(1) ¤ò»È¤¦¤È²¿¤é¤«¤Î¥¢¥¤¥Ç¥¢¤¬ÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢

% strings showboat.pfb | more
%!FontType1-1.0: Showboat 001.001
%%CreationDate: 1/15/91 5:16:03 PM
%%VMusage: 1024 45747
% Generated by Fontographer 3.1
% Showboat
 1991 by David Rakowski.  Alle Rechte Vorbehalten.
FontDirectory/Showboat known{/Showboat findfont dup/UniqueID known{dup
/UniqueID get 4962377 eq exch/FontType get 1 eq and}{pop false}ifelse
{save true}{false}ifelse}{false}ifelse
12 dict begin
/FontInfo 9 dict dup begin
 /version (001.001) readonly def
 /FullName (Showboat) readonly def
 /FamilyName (Showboat) readonly def
 /Weight (Medium) readonly def
 /ItalicAngle 0 def
 /isFixedPitch false def
 /UnderlinePosition -106 def
 /UnderlineThickness 16 def
 /Notice (Showboat
 1991 by David Rakowski.  Alle Rechte Vorbehalten.) readonly def
end readonly def
/FontName /Showboat def
--stdin--

¤³¤Î¾ðÊ󤫤顢¼¡¤Î¤è¤¦¤Ê̾Á°¤¬¹Í¤¨¤é¤ì¤Þ¤¹:

-type1-Showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1

¤³¤Î̾Á°¤Î¹½À®¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£

·¿ (foundry)

¿·¥Õ¥©¥ó¥È¤Ï type1 ¤È̾ÉÕ¤±¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£

² (family)

¥Õ¥©¥ó¥È¤Î̾Á°¤Ç¤¹¡£

½Å¤ß (weight)

normal (ÉáÄÌ)¡¢bold (ÂÀ¤¤)¡¢medium (Ãæ´Ö)¡¢ semibold (¤ä¤äÂÀ¤á) ¤Ê¤É¤¬¤¢¤ê¤Þ¤¹¡£¾åµ­¤Î strings(1) ¤Î½ÐÎϤè¤ê¡¢ ¥Õ¥©¥ó¥È¤Î½Å¤ß¤Ï medium ¤Ç¤¢¤ë¤È¹Í¤¨¤é¤ì¤Þ¤¹¡£

·¹¼Ð (slant)

roman (¥í¡¼¥Þ¥óÂÎ)¡¢italic (¥¤¥¿¥ê¥Ã¥¯ÂÎ)¡¢oblique (¼Ð»úÂÎ) ¤Ê¤É¤¬¤¢¤ê¤Þ¤¹¡£ ItalicAngle ¤¬0¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤Ë¤è¤ê¡¢ roman ¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£

Éý

normal (ÉáÄÌ)¡¢wide (Éý¹­)¡¢condensed (°µ½Ì)¡¢extended(³ÈÄ¥) ¤Ê¤É¤¬¤¢¤ê¤Þ¤¹¡£¾åµ­¤ÇÄ´¤Ù¤¿·ë²Ì¤«¤é¡¢ normal ¤ò²¾Äꤷ¤Þ¤¹¡£

Äɲå¹¥¿¥¤¥ë

Ä̾ï¤Ï¾Êά¤µ¤ì¤Þ¤¹¤¬¡¢¥Õ¥©¥ó¥È¤ËÁõ¾þÍÑ (decorative) ±ÑÂçʸ»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ò¤³¤³¤Ç¼¨¤·¤Þ¤¹¡£

¥¹¥Ú¡¼¥·¥ó¥°

proportional (¥×¥í¥Ý¡¼¥·¥ç¥Ê¥ë (ÌõÃí: »ú·Á¤Ë±þ¤¸¤ÆÉý¤¬ÊѲ½¤¹¤ë¥Õ¥©¥ó¥È)) ¤Þ¤¿¤Ï monospaced (ñ°ìÉý¥Õ¥©¥ó¥È) ¤¬¤¢¤ê¤Þ¤¹¡£¤³¤³¤Ç¤Ï Proportional ¤È¤·¤Æ¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï isFixedPitch ¤¬ false (µ¶) ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡£

¤³¤ì¤é¤Î̾Á°¤ÏÁ´¤ÆǤ°Õ¤Ê¤Î¤Ç¤¹¤¬¡¢ ´û¸¤Î´·½¬¤È¸ß´¹À­¤òÊݤĤ褦ÅØÎϤ¹¤Ù¤­¤Ç¤·¤ç¤¦¡£ X11 ¥×¥í¥°¥é¥à¤Ç¤Ï¡¢ ¥Õ¥©¥ó¥È¤Ï¥ï¥¤¥ë¥É¥«¡¼¥É¤ò´Þ¤ó¤À̾Á°¤Ç»²¾È¤µ¤ì¤Þ¤¹¡£¤Ç¤¹¤«¤é¡¢ ¥Õ¥©¥ó¥È̾¤Ï²¿¤é¤«¤Î°ÕÌ£¤Å¤±¤ò»ý¤Ã¤ÆÁªÂò¤µ¤ì¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£ (ÌõÃí : ŬÅö¤Ê¥Õ¥©¥ó¥È¤òõ¤¹¤È¤­¡¢) ¤¢¤ë¿Í¤Ïñ½ã¤Ë°Ê²¼¤Î̾Á°¤ò»È¤¦¤³¤È¤«¤é»Ï¤á¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

…-normal-r-normal-…-p-…
	
¤½¤·¤Æ¡¢ xfontsel(1) ¤Ç³ºÅö¤¹¤ë¥Õ¥©¥ó¥È¤òÄ´¤Ù¤Æ¤ß¤Æ¡¢¤½¤Î¥Õ¥©¥ó¥È¤Î·Á¤ò¸«¤Ê¤¬¤é¡¢ ̾Á°¤òÄ´À᤹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¤½¤ì¤Ç¤Ï¡¢¤³¤³¤Þ¤Ç¤ÎÎã¤ò´°·ë¤µ¤»¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£

X11 ¤ËÂФ·¤Æ¥Õ¥©¥ó¥È¤ò¥¢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
% cd /usr/X11R6/lib/X11/fonts/Type1
% ln -s /usr/local/share/fonts/type1/showboat.pfb .

fonts.dir ¤È fonts.scale ¤òÊÔ½¸¤·¤Æ¡¢¥Õ¥©¥ó¥È¤òµ­½Ò¤¹¤ë¹Ô¤òÄɲä·¡¢ºÇ½é¤Î¹Ô¤Ë¤¢¤ëÁí¥Õ¥©¥ó¥È¿ô¤òÁý¤ä¤·¤Þ¤¹¡£
% ex fonts.dir
:1p
25
:1c
26
.
:$a
showboat.pfb -type1-showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1
.
:wq

fonts.scale ¤Ï fonts.dir¤ÈƱ°ìÆâÍƤΤ褦¤Ç¤¹¤Î¤Ç…
% cp fonts.dir fonts.scale

X11 ¤ËÆâÍƤ¬Êѹ¹¤µ¤ì¤¿¤³¤È¤òÅÁ¤¨¤Þ¤¹¡£
% xset fp rehash

¿·¤·¤¤¥Õ¥©¥ó¥È¤ò»î¤·¤Æ¤ß¤Þ¤¹¡£
% xfontsel -pattern -type1-*

»²¹Íʸ¸¥: xfontsel(1)¡¢ xset(1)¡¢The X Windows System in a Nutshell¡¢O'Reilly & Associates


6. ¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤ò Ghostscript ¤ÇÍøÍѤ¹¤ë

Ghostscript ¤Ç¤Ï¡¢ Fontmap ¥Õ¥¡¥¤¥ë¤Ë½¾¤Ã¤Æ¥Õ¥©¥ó¥È¤ò»²¾È¤·¤Æ ¤¤¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤ò X11 ¤Î fonts.dir ¥Õ¥¡¥¤¥ë¤ÈƱÍͤÊÊýË¡¤ÇÊѹ¹¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ Ghostscript ¤Ç¤Ï¡¢ .pfa ·Á¼°¤Þ¤¿¤Ï .pfb ·Á¼°¤Î¥Õ¥©¥ó¥È¤Î¤¤¤º¤ì¤«°ìÊý¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Á°¾Ï¤ÎÎã¤ÇÅо줷¤¿¥Õ¥©¥ó¥È¤ò»È¤Ã¤Æ¡¢¤³¤³¤Ç¤Ï¤³¤Î¥Õ¥©¥ó¥È¤ò Ghostscript ¤Ç»ÈÍѤ¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ½Ò¤Ù¤Þ¤¹¡£

¥Õ¥©¥ó¥È¤ò Ghostscript ¤Î¥Õ¥©¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤ËÃÖ¤­¤Þ¤¹¡£
% cd /usr/local/share/ghostscript/fonts
% ln -s /usr/local/share/fonts/type1/showboat.pfb .

Ghostscript ¤Ë¥Õ¥©¥ó¥È¤òǧ¼±¤µ¤»¤ë¤¿¤á¤Ë Fontmap ¤òÊÔ½¸¤·¤Þ¤¹¡£
% cd /usr/local/share/ghostscript/4.01
% ex Fontmap
:$a
/Showboat        (showboat.pfb) ; % From CICA /fonts/atm/showboat
.
:wq

Ghostscript ¤òÍѤ¤¤Æ¥Õ¥©¥ó¥È¤ò»î¤·¤Æ¤ß¤Þ¤¹¡£
% gs prfont.ps
Aladdin Ghostscript 4.01 (1996-7-10)
Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA.  All rights
reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading Times-Roman font from /usr/local/share/ghostscript/fonts/tir_____.pfb...
 /1899520 581354 1300084 13826 0 done.
GS>Showboat DoFont
Loading Showboat font from /usr/local/share/ghostscript/fonts/showboat.pfb...
 1939688 565415 1300084 16901 0 done.
>>showpage, press <return> to continue<<
>>showpage, press <return> to continue<<
>>showpage, press <return> to continue<<
GS>quit

»²¹Íʸ¸¥: Ghostscript ¥Ð¡¼¥¸¥ç¥ó 4.01 ¤ÇÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë fonts.txt


7. ¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤ò Groff ¤ÇÍøÍѤ¹¤ë

¤³¤³¤Þ¤Ç¤Ç¿·¤·¤¤¥Õ¥©¥ó¥È¤ò X11 ¤È Ghostscript ¤ÎξÊý¤ÇÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¤¬¡¢ ¤³¤Î¿·¤·¤¤¥Õ¥©¥ó¥È¤ò¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð groff ¤Ç»È¤¦¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦¤«? ¤Þ¤ºÂè°ì¤Ë¡¢PostScript ¤Î¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤ò°·¤Ã¤Æ¤¤¤Þ¤¹¤«¤é¡¢ ¤³¤ì¤òŬÍѤǤ­¤ë groff ¥Ç¥Ð¥¤¥¹¤Ï ps ¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£¼¡¤Ë¡¢³Æ¡¹¤Î¥Õ¥©¥ó¥È¤ò groff ¤Ç»ÈÍѤǤ­¤ë¤è¤¦¤Ë¥Õ¥©¥ó¥È¥Õ¥¡ ¥¤¥ë¤òºî¤é¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ groff ¤Ç¤Î¥Õ¥©¥ó¥È̾¤Ï /usr/share/groff_font/devps ¤ÎÃæ¤Î¥Õ¥¡¥¤¥ë̾¤Ë¤Ê¤ê¤Þ¤¹¡£¾å½Ò¤ÎÎã¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Ï /usr/share/groff_font/devps/SHOWBOAT ¤È¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ï groff ¤Ë¤è¤Ã¤ÆÄ󶡤µ¤ì¤Æ¤¤¤ë¥Ä¡¼¥ë¤òÍѤ¤¤ÆÀ¸À®¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

ºÇ½é¤Ë afmtodit ¤È¤¤¤¦¥Ä¡¼¥ë¤ò»È¤¤¤Þ¤¹¡£ ¤³¤Î¥³¥Þ¥ó¥É¤ÏÄ̾ï¤Ç¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤»¤ó¤Î¤Ç¡¢ ¥½¡¼¥¹¥×¥í¥°¥é¥à·²¤«¤é³ºÅö¥×¥í¥°¥é¥à¤ò¼è¤ê½Ð¤µ¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î°ì¹Ô¤òÊѹ¹¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤¬Ê¬¤«¤Ã¤Æ¤¤¤Þ¤¹¡£ Ãø¼Ô¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤·¤¿¡£

% cp /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.pl /tmp
% ex /tmp/afmtodit.pl
:1c
#!/usr/bin/perl -P-
.
:wq

¤³¤Î¥Ä¡¼¥ë¤Ï¥á¥È¥ê¥Ã¥¯¥Õ¥¡¥¤¥ë (.afm ³ÈÄ¥»Ò) ¤«¤é groff ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Æ¤¯¤ì¤Þ¤¹¡£ ¥Õ¥©¥ó¥È»ÈÍÑÊýË¡Îã¤ò³¤±¤ë¤³¤È¤Ë¤·¤Þ¤·¤ç¤¦¡£

.afm ¥Õ¥¡¥¤¥ë¤Î¿¤¯¤Ï Mac ·Á¼°… ¤¹¤Ê¤ï¤Á¹Ô¤¬ ^M ¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤ò¹Ô¤ò ^J ¤Ç¶èÀÚ¤ë UNIX® ¥¹¥¿¥¤¥ë¤ËÊÑ´¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
% cd /tmp
% cat /usr/local/share/fonts/type1/showboat.afm |
	tr '\015' '\012' >showboat.afm

¤½¤·¤Æ¡¢groff ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Þ¤¹¡£
% cd /usr/share/groff_font/devps
% /tmp/afmtodit.pl -d DESC -e text.enc /tmp/showboat.afm generate/textmap SHOWBOAT

¤³¤ì¤Ç¥Õ¥©¥ó¥È¤ò SHOWBOAT ¤È¤¤¤¦Ì¾Á°¤Ç»²¾È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤·¤¿¡£

¥·¥¹¥Æ¥à¤Ç¥×¥ê¥ó¥¿¤ò°·¤¦¤¿¤á¤Ë Ghostscript ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢ ¤³¤ì¤Çºî¶È¤Ï´°Î»¤·¤Þ¤·¤¿¡£¤·¤«¤·¤Ê¤¬¤é¡¢ËÜʪ¤Î PostScript ¥×¥ê¥ó¥¿¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Õ¥©¥ó¥È¤ò»ÈÍѲÄǽ¤Ë¤¹¤ë°Ù¤Ë¡¢ Åö³º¥Õ¥©¥ó¥È¤ò¥×¥ê¥ó¥¿¤Ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹ (showboat ¥Õ¥©¥ó¥È¤¬¥×¥ê¥ó¥¿¤Ë¶öÁ³¤Ë¤âºÇ½é¤«¤éÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢ ¤â¤·¤¯¤Ï¥×¥ê¥ó¥¿¤«¤é¥¢¥¯¥»¥¹¤µ¤ì¤ë¥Õ¥©¥ó¥È¥Ç¥£¥¹¥¯¤ÎÃæ¤ËÆþ¤Ã¤Æ¤¤ ¤ë¾ì¹ç¤Ï¤³¤Î¸Â¤ê¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó)¡£ ¥Õ¥©¥ó¥ÈÍøÍѤκǽªÃʳ¬¤È¤·¤Æ¡¢ ¥À¥¦¥ó¥í¡¼¥É²Äǽ¤Ê·Á¼°¤Î¥Õ¥©¥ó¥È¤òÀ¸À®¤·¤Þ¤¹¡£ ¥Ä¡¼¥ë pfbtops ¤Ï (ÌõÃí : .pfb ·Á¼°¤«¤é) .pfa ·Á¼°¤Î¥Õ¥©¥ó¥È¤òÀ¸À®¤¹¤ë¤¿¤á¤Ë¡¢¤½¤·¤Æ¡¢ download ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¡¢ ¥Õ¥©¥ó¥È¤ÎÆâÉô̾¤ò»²¾È¤¹¤ë¤è¤¦¤ËÊѹ¹¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ ¤³¤ÎÆâÉô̾¤Ï°Ê²¼¤Ç¼¨¤¹¤è¤¦¤Ë groff ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤«¤éÍưפËÄ´¤Ù¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

.pfa ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¡£
% pfbtops /usr/local/share/fonts/type1/showboat.pfb >showboat.pfa

¤â¤Á¤í¤ó¡¢.pfa ¤¬´û¤ËÍøÍѲÄǽ¤Ç¤¢¤ì¤Ð¡¢ »²¾È¤Ç¤­¤ë¤è¤¦¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÄ¥¤Ã¤Æ²¼¤µ¤¤¡£

ÆâÉô¥Õ¥©¥ó¥È̾¤òÆÀ¤ë¡£
% fgrep internalname SHOWBOAT
internalname Showboat

³ºÅö¥Õ¥©¥ó¥È¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤ò groff ¤ËÄÌÃΤ¹¤ë¡£
% ex download
:$a
Showboat      showboat.pfa
.
:wq

¥Õ¥©¥ó¥È¤ò»îÍѤ¹¤ë¡£

% cd /tmp
% cat >example.t <<EOF
.sp 5
.ps 16
This is an example of the Showboat font:
.br
.ps 48
.vs (\n(.s+2)p
.sp
.ft SHOWBOAT
ABCDEFGHI
.br
JKLMNOPQR
.br
STUVWXYZ
.sp
.ps 16
.vs (\n(.s+2)p
.fp 5 SHOWBOAT
.ft R
To use it for the first letter of a paragraph, it will look like:
.sp 50p
\s(48\f5H\s0\fRere is the first sentence of a paragraph that uses the
showboat font as its first letter.
Additional vertical space must be used to allow room for the larger
letter.
EOF
% groff -Tps example.t >example.ps

ghostscript/ghostview¤ò»È¤Ã¤Æɽ¼¨¤¹¤ë¡£
% ghostview example.ps

°õºþ¤¹¤ë (ÌõÃí : ¥×¥ê¥ó¥¿Ì¾¤ÏŬµ¹Êѹ¹¤·¤Æ²¼¤µ¤¤)¡£
% lpr -Ppostscript example.ps

»²¹Íʸ¸¥: /usr/src/gnu/usr.bin/groff/afmtodit/afmtodit.man¡¢ groff_font(5)¡¢groff_char(7)¡¢pfbtops(1)


8. TrueType ¥Õ¥©¥ó¥È¤ò groff ÍÑ¤Ë groff/PostScript ¥Õ¥©¡¼¥Þ¥Ã¥È¤ËÊÑ´¹¤¹¤ë

¤³¤ì¤Ë¤Ï¤¤¤¯¤Ä¤«¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬É¬ÍפǤ¹¤¬¡¢ ¥Ù¡¼¥¹¥·¥¹¥Æ¥à¤Î°ìÉô¤È¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤Ï¤¤¤Ê¤¤¤Î¤Ç¼ã´³¤Îºî¶È¤¬É¬ÍפȤʤê¤Þ¤¹¡£ ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤â¤Î¤Ï:

ttf2pf

TrueType ¤«¤é PostScript ¤Ø¤ÎÊÑ´¹¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç¤¹¡£ ¤³¤ì¤Ï TrueType ¥Õ¥©¥ó¥È¤«¤é¥¢¥¹¥­¡¼¥Õ¥©¥ó¥È¥á¥È¥ê¥Ã¥¯ (.afm) ¥Õ¥¡¥¤¥ë¤Ø¤ÎÊÑ´¹¤ò¹Ô¤¤¤Þ¤¹¡£

¸½»þÅÀ¤Ç¤Ï http://sunsite.icm.edu.pl/pub/GUST/contrib/BachoTeX98/ttf2pf/ ¤«¤éÆþ¼ê¤Ç¤­¤Þ¤¹¡£ Ãí°Õ: ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ï PostScript ¤Ë¤è¤ë¥×¥í¥°¥é¥à¤Ê¤Î¤Ç¡¢ Shift ¥­¡¼¤ò²¡¤·¤Ê¤¬¤é¥ê¥ó¥¯¤ò¥¯¥ê¥Ã¥¯¤·¤Æ ¥Ç¥£¥¹¥¯¤Ë¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤µ¤â¤Ê¤¤¤È¤¢¤Ê¤¿¤Î¥Ö¥é¥¦¥¶¤Ï ghostview ¤òΩ¤Á¤¢¤²¤Þ¤¹¡£

½ÅÍפʥե¡¥¤¥ë¤Ï:

  • GS_TTF.PS

  • PF2AFM.PS

  • ttf2pf.ps

Âçʸ»ú¤È¾®Ê¸»ú¤¬´ñ̯¤Ëº®ºß¤·¤Æ¤¤¤ë¤Î¤Ï¡¢ DOS ¥·¥§¥ë¤Î¤³¤È¤â¹Íθ¤·¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡£ ttf2pf.ps ¤Ï¤½¤ì°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò Âçʸ»ú¤È¤·¤Æ°·¤¤¤Þ¤¹¤Î¤Ç¡¢ ¥Õ¥¡¥¤¥ë̾¤ÎÊѹ¹¤Ï¤½¤ì¤ËÂбþ¤µ¤»¤Æ¤¯¤À¤µ¤¤ (¼ÂºÝ¤Ë¤Ï GS_TTF.PS ¤È PFS2AFM.PS ¤Ï¡¢°ì±þ Ghostscript ¤ÎÇÛÉÛʪ¤Î°ìÉô¤Ç¤¹¤¬¡¢ ¸ÄÊ̤Υ桼¥Æ¥£¥ê¥Æ¥£¤È¤·¤Æ¤âÌäÂê¤Ê¤¯ÍøÍѤǤ­¤Þ¤¹¡£ FreeBSD ¤Ë¤Ï¸å¼Ô¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹)¡£ /usr/local/share/groff_font/devps ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¤è¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

afmtodit

¤Ï¥¢¥¹¥­¡¼¥Õ¥©¥ó¥È¥á¥È¥ê¥Ã¥¯¥Õ¥¡¥¤¥ë¤«¤é groff ¤È¤È¤â¤Ë»È¤¦¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£ ¤³¤ì¤ÏÄ̾ /usr/src/contrib/groff/afmtodit ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¸ºß¤·¤Æ¤¤¤Æ¡¢ »È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ïºî¶È¤¬É¬ÍפǤ¹¡£

注意: ¤â¤·¤â /usr/src ¥Ä¥ê¡¼¤Çºî¶È¤ò¤¹¤ë¤³¤È¤òí´í°¤¦¤Ê¤é¡¢ ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍƤòºî¶ÈÍѤξì½ê¤Ë¥³¥Ô¡¼¤¹¤ì¤Ð¤¤¤¤¤Ç¤¹¡£

ºî¶È¥¨¥ê¥¢¤Ç°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤³¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤·¤Þ¤¹¡£

# make -f Makefile.sub afmtodit
	 

¤â¤·¡¢¤Þ¤À¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð /usr/contrib/groff/devps/generate/textmap ¤ò /usr/share/groff_font/devps/generate ¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£

¤³¤ì¤é¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬½êÄê¤Î¾ì½ê¤Ë¼ý¤Þ¤Ã¤¿¤é ¤¤¤Ä¤Ç¤â³«»Ï¤Ç¤­¤Þ¤¹¡£

  1. .afm ¥Õ¥¡¥¤¥ë¤ò°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æºî¤ê¤Þ¤¹¡£

    % gs [-dNODISPLAY] [-q] -- ttf2pf.ps TTF_name [PS_font_name [AFM_name]]
    	
    

    ¤³¤³¤Ç¡¢TTF_name ¤Ï¤¢¤Ê¤¿¤Î TrueType ¥Õ¥©¥ó¥È¤Î̾Á°¤Ç¡¢PS_font_name ¤Ï .pfa ¥Õ¥¡¥¤¥ë¤Î¤¿¤á¤Î¥Õ¥¡¥¤¥ë̾¤Ç¡¢ AFM_name ¤Ï .afm ¥Õ¥¡¥¤¥ë¤Ë˾¤à̾Á°¤Ç¤¹. .pfa ¤ä .afm ÍѤνÐÎÏ¥Õ¥¡¥¤¥ë̾¤òÌÀ¼¨¤·¤Ê¤±¤ì¤Ð¡¢ ¥Ç¥Õ¥©¥ë¥È̾¤Ï TrueType ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë̾¤«¤éºîÀ®¤µ¤ì¤Þ¤¹¡£

    ¤³¤Î»þ¡¢¥¢¥¹¥­¡¼ PostScript ¥Õ¥©¥ó¥È¥á¥È¥ê¥Ã¥¯¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë .pfa ¥Õ¥¡¥¤¥ë¤âƱ»þ¤Ëºî¤é¤ì¤Þ¤¹ (.pfb ¤Ï¥Ð¥¤¥Ê¥ê·Á¼°¤Ç¤¹)¡£ ¤³¤ì¤ÏÉÔÍפȤʤë¤Ç¤·¤ç¤¦¤¬¡¢(»ä¤¬¹Í¤¨¤ë¤Ë) ¥Õ¥©¥ó¥È¥µ¡¼¥Ð¤Ë¤ÏÌòΩ¤Ä¤Ç¤·¤ç¤¦¡£

    Îã¤È¤·¤Æ¡¢30f9 ¥Ð¡¼¥³¡¼¥É¥Õ¥©¥ó¥È¤ò¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë̾¤ÇÊÑ´¹¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

    % gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf
    Aladdin Ghostscript 5.10 (1997-11-23)
    Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
    This software comes with NO WARRANTY: see the file PUBLIC for details.
    Converting 3of9.ttf to 3of9.pfa and 3of9.afm.
    	
    

    ÊÑ´¹¸å¤Î¥Õ¥©¥ó¥È¤ò A.pfa ¤È B.afm ¤Ë¤¹¤ë¤Ê¤é°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

    % gs -dNODISPLAY -- ttf2pf.ps 3of9.ttf A B
    Aladdin Ghostscript 5.10 (1997-11-23)
    Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
    This software comes with NO WARRANTY: see the file PUBLIC for details.
    Converting 3of9.ttf to A.pfa and B.afm.
    	
    
  2. groff PostScript ¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£

    °Ê²¼¤Î¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤¬ÍѰդʤ褦¤Ë /usr/share/groff_font/devps ¤Ë ¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤·¤Þ¤¹¡£ ¶²¤é¤¯ root Æø¢¤¬É¬Íפˤʤë¤Ç¤·¤ç¤¦ (¤½¤³¤Ç¤Îºî¶È¤¬µ¤¤Ë¤¤¤é¤Ê¤¤¤Ê¤é¡¢¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î DESC¡¢ text.enc¡¢ generate/textmap ¥Õ¥¡¥¤¥ë¤¬»²¾È¤µ¤ì¤ë¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤)¡£

    % afmtodit -d DESC -e text.enc file.afm \
    	    generate/textmap PS_font_name
    	
    

    ¤³¤³¤Ç¡¢file.afm ¤Ï AFM_name ¤Ç¡¢¾å¤Ç ttf2pf.ps ¤Çºî¤Ã¤¿¤â¤Î¤Ç¤¹¡£ PS_font_name ¤Ï¥³¥Þ¥ó¥É¤«¤é»È¤ï¤ì¤ë¥Õ¥©¥ó¥È̾¤Ç¡¢ groff(1) ¤¬¤³¤Î¥Õ¥©¥ó¥È¤ò»²¾È¤¹¤ë¤¿¤á¤Ë»È¤¦¤â¤Î¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð¡¢ºÇ½é¤Î tiff2pf.ps ¥³¥Þ¥ó¥É¤ò¾å½Ò¤Î¤è¤¦¤Ë¹Ô¤Ã¤Æ¤¤¤¿¤È¤¹¤ë¤È¡¢ 3of9 ¥Ð¡¼¥³¡¼¥É¥Õ¥©¥ó¥È¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¤ÇºîÀ®¤Ç¤­¤Þ¤¹¡£

    % afmtodit -d DESC -e text.enc 3of9.afm \
                     generate/textmap 3of9
    	
    

    ÆÀ¤é¤ì¤ë PS_font_name ¥Õ¥¡¥¤¥ë (¤³¤ÎÎã¤Ç¤Ï 3of9) ¤Ï¥Ç¥£¥ì¥¯¥È¥ê /usr/share/groff_font/devps ¤Ë¡¢¥³¥Ô¡¼¤¹¤ë¤Ê¤ê°ÜÆ°¤¹¤ë¤Ê¤ê¤·¤ÆÃÖ¤«¤ì¤ë¤³¤È¤Ëµ¤¤ò¤Ä¤±¤Æ¤¯¤À¤µ¤¤¡£

    ttf2pf.ps ¤¬¤ï¤ê¤Ä¤±¤ë¥Õ¥©¥ó¥È̾¤Ï TrueType ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ëÃæ¤Ë¸«¤Ä¤«¤Ã¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤½¤ì¤È¤Ï°Û¤Ê¤ë̾Á°¤ò»È¤¤¤¿¤«¤Ã¤¿¤é¡¢ .afm ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤Æ¤«¤é afmtodit ¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ groff(1) ¤«¤é gs(1) ¤Ø¥Ñ¥¤¥×¤¹¤ë¤Ä¤â¤ê¤Ê¤é¤Ð¡¢ ¤½¤Î̾Á°¤ÏƱ»þ¤Ë¥Õ¥©¥ó¥È¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤Ç»È¤ï¤ì¤Æ¤¤¤ë¤â¤Î¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£


9. TrueType ¥Õ¥©¥ó¥È¤ò¾¤Î¥×¥í¥°¥é¥à¤Ç»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¤«?

TrueType ¥Õ¥©¥ó¥È·Á¼°¤Ï Windows¡¢Windows 95¡¢Mac ¤ÇÍѤ¤¤é¤ì¤Þ¤¹¡£¤³¤Î·Á¼°¤Ï¶Ë¤á¤Æͭ̾¤Ç¤¢¤ê¡¢ Èó¾ï¤Ë¤¿¤¯¤µ¤ó¤Î¥Õ¥©¥ó¥È¤¬ÍøÍѤǤ­¤Þ¤¹¡£

»ÄÇ°¤Ê¤¬¤é¡¢¤³¤Î·Á¼°¤ò (ÌõÃí: FreeBSD ¤Ç) ¤³¤Î·Á¼°¤òÍøÍѤǤ­ ¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¡¢É®¼Ô¤¬ÃΤë¸Â¤ê¤Û¤È¤ó¤É¤Ê¤¯¡¢ Ghostscript ¤È Povray ¤·¤«»×¤¤¤Ä¤­¤Þ¤»¤ó¡£ ¥É¥­¥å¥á¥ó¥È¤Ë¤è¤ì¤Ð¡¢Ghostscript ¤Î Âбþ¤ÏÉÔ½½Ê¬¤Ç¤¢¤ê¡¢¥¿¥¤¥× 1 ¥Õ¥©¥ó¥È¤è¤êÁÆ°­¤Ê·ë²Ì¤Ë¤Ê¤ë¤è¤¦¤Ç¤¹¡£ Povray ¥Ð¡¼¥¸¥ç¥ó 3 ¤â¤Þ¤¿ TrueType ¥Õ¥©¥ó¥È¤òÍøÍѲÄǽ¤Ç¤¹¤¬¡¢É®¼Ô¤Ï¡¢¥É¥­¥å¥á¥ó¥È¤ò°ìÏ¢¤Î¥ì¥¤¥È¥ì¡¼ ¥¹¤·¤¿¥Ú¡¼¥¸¤È¤·¤ÆºîÀ®¤¹¤ë¿Í¤¬Â¿¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤Èµ¿¤Ã¤Æ¤¤¤Þ¤¹ :-)¡£

¤³¤Î¤Ê¤ó¤È¤âÈá»´¤Ê¾õ¶·¤ÏÊѤï¤ê¤Ä¤Ä¤¢¤ê¤Þ¤¹¡£ FreeType ¥×¥í¥¸¥§¥¯¥È ¤Ç¤Ï FreeType ¤ÎÊØÍø¤Ê¥Ä¡¼¥ë¤ò³«È¯¤·¤Æ¤¤¤Þ¤¹¡£


10. ¤É¤³¤Ç¥Õ¥©¥ó¥È¤òÆþ¼ê¤Ç¤­¤Þ¤¹¤«?

¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤Ç¤¿¤¯¤µ¤ó¤Î¥Õ¥©¥ó¥È¤òÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤ì¤é¤Ï´°Á´¤Ë̵ÎÁ¤Ç¤¢¤ë¤«¡¢¥·¥§¥¢¥¦¥§¥¢¤Ç¤¹¡£²Ã¤¨¤Æ¡¢ ¤¿¤¯¤µ¤ó¤Î¥Õ¥©¥ó¥È¤¬¼ýÏ¿¤µ¤ì¤¿¤¢¤Þ¤ê¹â²Á¤Ç¤Ï¤Ê¤¤ CDROM ¤¬¤¿¤¯¤µ¤ó¤¢¤ê¤Þ¤¹¡£¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤Ç¤Î¥¢¥¯¥»¥¹¥Ý¥¤¥ó¥È (1996ǯ8·î¸½ºß)¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹¡£


11. ¤½¤Î¾¤Î¼ÁÌä


ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£