ãã®èšäºã¯å€ããªããŸããã®ã§æ°ããèšäºãã芧ãã ããã
ãã®æ å ±ã¯ 1.5 ç³»ãããšã«ããŠããŸãã1.4 ç³»ã§ã¯åäœãç°ãªãå¯èœæ§ããããŸãã®ã§æ³šæããŠäžããããŸããå人ã®çµéšäžã®è©±ã§ãã®ã§ééã£ãŠããéšåããããããããŸããã
ãã®èšäºã«ãã ReplacementsãFontSubstitutesãSystemLink ã«ããããã©ã³ãèšå®ã«ã¯è¥å¹²èª€ããå«ãŸãããšæãããŸãïŒæéããªããŠãŸã çŽããŠãŸããïŒã
2013幎09æ17æ¥ïŒ
æ¥æ¬èªç°å¢çšåæèšå®ãã¡ã€ã«ãå ¬éããŸããã
Mac ãŠãŒã¶ãŒåã Wine åæèšå®çš INF ãã¡ã€ã« - mattintosh note -hatena-
Wine ããã©ã³ãããã§ãã¯ããå Žæ
Wine ç°å¢ã§äœ¿çšãããã©ã³ã㯠Wine æ¬äœãš fontconfig ã«ãã£ãŠå¶åŸ¡ãããŠããŸããfontconfig ã¯ãã«ãæã«ã©ã®ã©ã€ãã©ãªã䜿ã£ããã«ãã£ãŠæ€çŽ¢å Žæãç°ãªããŸããMacPorts çã® fontconfig 㯠~/Library/Fonts
ãæ€çŽ¢å¯Ÿè±¡ã«å
¥ã£ãŠããªããããããã©ã«ãã§ã¯ãŠãŒã¶ãŒãã©ã³ããèªèãããŸããã詳ããã¯ããŠãŒã¶ãŒãã©ã³ãïŒ~/Library/FontsïŒãèªèãããªãããåç
§ããŠäžããããããã®å Žåã§ã $WINEPREFIX/drive_c/windows/Fonts
ã«ãããã©ã³ãã¯èªèãããŸãïŒAquaKana.ttf ãªã©ç¹æ®ãªãã©ã³ãã¯é€ãïŒã
æ€çŽ¢å Žæ | èšå®ãã¡ã€ã«ã®å Žæ | |
---|---|---|
wine | ../share/wine/fonts $WINEPREFIX/dosdevices/c:/windows/Fonts |
|
fontconfig (MacPorts) | /System/Library/Fonts /Library/Fonts ~/.fonts |
/opt/local/etc/fonts |
fontconfig (XQuartz) | /System/Library/Fonts /Library/Fonts ~/.fonts ~/Library/Fonts |
/opt/X11/lib/X11/fontconfig |
â»æ€çŽ¢å Žæã¯äžéšçç¥ããŠããŸãã
â»$WINEPREFIX/dosdevices/c:/windows/Fonts
㯠$WINEPREFIX/drive_c/windows/Fonts
ãšåãå Žæã§ãã
â»~/.fonts
ã¯å°æ¥å»æ¢äºå®ã
â»X11.app ã®å Žå㯠/opt/X11
ã§ã¯ãªã /usr/X11
ã«ãªããŸãã
è±èªã§è¡šç€ºãããåå
gettext ç¡ãã§ãã«ããã
Wine ã¯æ¥æ¬èªã¡ãã»ãŒãžã®çæã« gettext ã䜿çšããŸããããã¯ãã«ãæã«è¡ãããŠãããããªã®ã§ gettext ç¡ãã§ãã«ãããå Žåã¯åãã«ããå¿ èŠã«ãªããšæãããŸããHomebrew çã® Wine ã«ã¯äŸåé¢ä¿ã« gettext ãå«ãŸããŠããªããããªã®ã§ Wine åäœã®ã€ã³ã¹ããŒã«ã ãšæ¥æ¬èªã¡ãã»ãŒãžãçæãããªããããããŸãããã€ã³ã¹ããŒã«ããã¢ããªã±ãŒã·ã§ã³ïŒäŸãã° FirefoxïŒã«ãã£ãŠã¯ã¢ããªã±ãŒã·ã§ã³èªäœãæ¥æ¬èªã¡ãã»ãŒãžãå«ãã§ããããšããããŸãã
LANG
ãæ£ããèšå®ãããŠããªã
ç°å¢å€æ° LANG
ã®å€ã en_US.UTF-8
ãªã©ã«ãªã£ãŠãããšè±èªã«ãªããŸããLANG=ja_JP.UTF-8
ãªã©ã«èšå®ããŠäžãããlocale
ã³ãã³ãã§ç¢ºèªã§ããŸãã
æ¥æ¬èªãæååããã
msgothic.ttc ãç¡ãå Žåã®å¯ŸåŠæ³ã§ããWine ã«ãã©ã³ããèªèãããŠããªãå Žåã¯å ã«äžã«ããããŠãŒã¶ãŒãã©ã³ãïŒ~/Library/FontsïŒãèªèãããªãããèªãã§äžããã
â»ã¬ãžã¹ããªã«ç»é²ãããŠããŠã MS Shell Dlg
ã«å®å
šã«åæ ãããªãããã©ã³ããããããã§ãïŒOsaka ãªã©ïŒã
MS Shell Dlg
ãŸããã¡ã€ã³ãã€ã¢ãã°ïŒMS Shell Dlg
ïŒã§ãããããã«ã¯ãMS UI Gothicããèšå®ãããŠããŸããmsgothic.ttc ãååšããªããã°ä»£æ¿ããã©ã³ãã䜿çšãããŸãïŒäœãåºæºã«éžãã§ããã®ãã¯ç¥ããŸãããïŒãããã§ã¯æ¥æ¬èªãŸãã¯è±èªã®ããã©ã³ãåãã䜿çšãããŸããregedit
ïŒã¬ãžã¹ããªãšãã£ã¿ïŒã䜿ã£ãŠå€æŽããŸãã
ããã¹ããšãã£ã¿ã§ã¬ãžã¹ããªãæžããŠã€ã³ããŒãããããšãã§ããŸããäŸãã°ä»¥äžã®ã¬ãžã¹ããªãã€ã³ããŒããããš MS Shell Dlg
ã«ã¯ãIPAMonaUIGothicïŒIPA ã¢ã㌠UI GothicïŒãã«æå®ãããŸãã
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "MS Shell Dlg"="IPAMonaUIGothic"
printf
ã echo
ã䜿ã£ãŠã³ãã³ãã©ã€ã³ã§ãç»é²ãã§ããŸãã
printf '[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]\n"MS Shell Dlg"="IPAMonaUIGothic"' | wine regedit -
ãã©ã³ãåã¯ã¬ãžã¹ããªãšãã£ã¿ã§ç¢ºèªã§ããŸããã@ããã€ããŠãããã®ã¯çžŠæžçšã§ããFONTCONFIG_FILE
ã§è¿œå ããããã®ã¯ HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts
ã§ç¢ºèªã§ããŸããã$WINEPREFIX/drive_c/windows/Fonts
ã«è¿œå ãããã®ã¯ HKEY_CURRENT_USER\Software\Wine\Fonts
ã«ããç¡ããããããŸããã
ãã©ã³ããªã³ã¯
äžèšã®ãMS Shell Dlgãã¯äž»ã«ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãã·ã¹ãã ã®ãã€ã¢ãã°è¡šç€ºã§äœ¿çšãããŸãããã¢ããªã±ãŒã·ã§ã³ã«ãã£ãŠãTahomaãããVerdanaããåŒã³åºãããšããããŸãããããã®ãã©ã³ãã¯æ¥æ¬èªãå«ãã§ããªããããæ¥æ¬èªéšåããâ¡ãïŒåè§ïŒã«æååãããŸããããã©ã³ããªã³ã¯ãã¯ãã®äžè¶³ããŠããæåãè£ãæ©èœã§ãïŒmsgothic.ttc ãååšããå Žåã¯åæã«çœ®ãæããããŸãïŒããã®èŸºã¯ Windows ã·ã¹ãã ãšã ãããåãã ãšæããŸãã®ã§è©³ãã説æã¯çç¥ããŸãã
ã¬ãžã¹ããªã®ãµã³ãã«ã¯ä»¥äžã®ããŒãžã«ããããŸãã
iNSTANTWiNE çšè¿œå ã¬ãžã¹ã㪠- mattintosh note -hatena-
ãã©ã³ããªã³ã¯ã®ç»é²æ¹æ³
ãã©ã³ããªã³ã¯ã¯ä»¥äžã®äºç®æã®ããŒã§èšå®å¯èœãªããã§ãã
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
- ããŒãååšããªãå Žåã¯æ°ãã«äœæããã
- ãã©ã³ãã¯ããã¡ã€ã«åãã§æå®ãããäŸãã°ãã©ã³ãåããIPA ã¢ã㌠PãŽã·ãã¯ãã§ããã°ãipagp-mona.ttfããšããŠç»é²ããã
- TTC ãã¡ã€ã«ã®å Žåã¯ããã¡ã€ã«åãã®åŸã«ããã©ã³ãåããæå®ããã
- è€æ°ãªã³ã¯ã®å Žåã¯ãæååå€ïŒREG_SZïŒãã§ã¯ãªããè€æ°æååå€ïŒREG_MULTI_SZïŒãã§è¡ãããã®å Žåãã¬ãžã¹ããªã®å€ã¯ Unicode ã«ãªãã
HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements
- ããŒãååšããªãå Žåã¯æ°ãã«äœæããã
- ãã©ã³ãåã¯ããã©ã³ãåãã§æå®ãããäŸãã°ãã¡ã€ã«åããipag-mona.ttfãã§ããã°ãIPA ã¢ã㌠PãŽã·ãã¯ããŸãã¯ãIPAMonaPGothicãã
- è€æ°ãªã³ã¯ã®å Žåã¯ãæååå€ïŒREG_SZïŒãã§ã¯ãªããè€æ°æååå€ïŒREG_MULTI_SZïŒãã§è¡ãããã®å Žåãã¬ãžã¹ããªã®å€ã¯ Unicode ã«ãªãã
IPA ã¢ããŒãã©ã³ãã«ããèšå®äŸ
ã€ã³ããŒãçšã¬ãžã¹ããªãã¡ã€ã«ã®äŸ
æååå€ã®å Žå
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Tahoma"="ipagp-mona.ttf"
è€æ°æååå€ã®å Žå
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] "Tahoma"=hex(7):69,70,61,67,70,2d,6d,6f,6e,61,2e,74,74,66,00,00
ãã©ã³ããªã³ã¯ã®ç¢ºèª
ç°å¢èšå®ã®ãç»é¢ãã¿ãã«ããã10 ãã€ã³ãã® Tahoma ã«ããèŠæ¬ã§ããã§ç¢ºèªã§ããŸããïŒæååãããã¢ããªã±ãŒã·ã§ã³ã§ç¢ºèªããŠãOKïŒ
ãã©ã³ããªã³ã¯èšå®å
ãã©ã³ããªã³ã¯èšå®åŸ
ãŠãŒã¶ãŒãã©ã³ãïŒ~/Library/FontsïŒãèªèãããªã
MacPorts çã® Wine ã§ééããåé¡ã§ããMacPorts çã® fontconfig ã䜿çšãã /opt/local/etc/fonts/fonts.conf
ãèŠãŠã¿ãŸããããïŒè¡çªå·ã¯ãã¡ãã§ä»å ãããã®ã§å®éã«ã¯ãããŸããïŒ
24:<!-- Font directory list --> 25: 26: <dir>/usr/share/fonts</dir> 27: <dir>/usr/X11/lib/X11/fonts</dir> <dir>/Library/Fonts</dir> <dir>/Network/Library/Fonts</dir> <dir>/System/Library/Fonts</dir> <dir>/opt/local/share/fonts</dir> 28: <dir prefix="xdg">fonts</dir> 29: <!-- the following element will be removed in the future --> 30: <dir>~/.fonts</dir>
MacPorts çã® fontconfig ã¯ãããã®ãã£ã¬ã¯ããªããã§ãã¯ããŸãããããã«ã¯ ~/Library/Fonts
ãå«ãŸããŠããŸãããããã« <dir>~/Library/Fonts</dir>
ãšããèšè¿°ãè¿œå ããŠãããã°ãŠãŒã¶ãŒãã©ã³ããèªã¿èŸŒãããã«ãªããŸããã管çè
æš©éãå¿
èŠã§ãããfontconfig ãå
¥ãçŽããããããšåç·šéããªããŠã¯ãããªãã®ã§ããŸãããããããŸããã
解決æ³1) ã·ã³ããªãã¯ãªã³ã¯ã§ ~/.fonts ã ~/Library/Fonts ãžãªã³ã¯ãã
ãããæãç°¡åãªæ¹æ³ã§ãã~/.fonts
ãã ~/Library/Fonts
ãžã®ãªã³ã¯ãäœã£ãŠãããŸãã
ln -s ~/Library/Fonts ~/.fonts
解決æ³2) èšå®ãã¡ã€ã«ãæžã
è¿œå èšå®ãã¡ã€ã«ããŠãŒã¶ãŒãäœæããããšãã§ããŸãã/opt/local/etc/fonts/conf.d/50-user.conf
ã«ãã以äžã®ãã¡ã€ã«ãšãã£ã¬ã¯ããªããã§ãã¯ãããŸãã
- ~/.fonts.conf
- ~/.fonts.conf.d
~/.fonts.conf
ã¯èšå®ãã¡ã€ã«ã§ãã£ã¬ã¯ããªã®è¿œå ã®ä»ãã¢ã³ããšãªã¢ã¹ã®èšå®çãèšè¿°ããããšãã§ããŸãã~/.fonts.conf.d
ã¯èšå®ãã¡ã€ã«ãåããŠçœ®ããŠãããã£ã¬ã¯ããªã§ãã
ä»åã¯ãšãããã ~/.fonts.conf
ã§ãã£ã¬ã¯ããªã®è¿œå ã ããè¡ããŸãã
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <dir>~/Library/Fonts</dir> </fontconfig>
解決æ³3) 05-osx-fonts.conf ã ~/.fonts.conf.d 以äžã«ãªã³ã¯ãŸãã¯ã³ããŒãã
/opt/X11/lib/X11/fontconfig
以äžã«ããèšå®ãã¡ã€ã«ãæµçšããŸãã
mkdir ~/.fonts.conf.d ln -s /opt/X11/lib/X11/fontconfig/conf.avail/05-osx-fonts.conf ~/.fonts.conf.d
解決æ³4) ç°å¢å€æ° FONTCONFIG_PATH ã§èšå®ãã£ã¬ã¯ããªãå€æŽãã
MacPorts åŽã® fontconfig ã®èšå®ãã¡ã€ã«ã§ã¯ãªã XQuartz.app åŽã® fontconfig ã®èšå®ãã¡ã€ã«ã䜿ããŸãã
FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig /opt/local/bin/wine regedit
~/.bashrc
ãªã©ã« alias
ã§èšå®ããŠããããšãã§ããŸããïŒâ»ã·ã§ã«ã®ãããã¡ã€ã«ãèªã¿èŸŒãŸãªãèµ·åã®å Žåã¯äœ¿ããŸããïŒ
alias wine="FONTCONFIG_PATH=/opt/X11/lib/X11/fontconfig /opt/local/bin/wine"
解決æ³5) $WINEPREFIX/drive_c/windows/Fonts ã ~/Library/Fonts ã«çœ®ãæãã
â»ãã®æ¹æ³ã¯ãã¬ãã£ãã¯ã¹äœææã«æ¯åè¡ãå¿ èŠãããã®ã§ããŸãããããããŸããã
Wine ã®ãã¬ãã£ãã¯ã¹ã«ãã C:Â¥windowsÂ¥Fonts
ã ~/Library/Fonts
ã«ãªã³ã¯ããŸããæ¢åã®ãã£ã¬ã¯ããªãååšãããšã·ã³ããªãã¯ãªã³ã¯ãäœæã§ããŸããã®ã§äºåã«åé€ããå¿
èŠããããŸããäžã«ãã©ã³ããå
¥ã£ãŠããå Žåã¯åé€ãããŸãã®ã§æ³šæããŠäžããã
以äžã¯ $WINEPREFIX
ã ~/.wine
ã®å Žåã®äŸã§ãã
rm -rf ~/.wine/drive_c/windows/Fonts ln -s ~/Library/Fonts ~/.wine/drive_c/windows/Fonts
ãã©ã³ãïŒãã¡ããªãŒïŒåã®åœè£ ã«ãã MS UI Gothic ã®çæ
ãMS UI Gothicããšããã®ã¯ãã¡ããªãŒåãåºæºã«ããŠãããããªã®ã§ FontForge ã䜿ã£ãŠãIPA ã¢ã㌠UI GothicïŒipagui-mona.ttfïŒããæ¹é ããŸããFontForge 㯠MacPorts ã§ã€ã³ã¹ããŒã«ã§ããŸãã
ããšã¬ã¡ã³ã > ãã©ã³ãæ å ±ããéãããPS NamesããšãTTFåãã¿ãã§ããã¡ããªãŒåãããMS UI Gothicãã«æžãæããŸããããã«ããŒã /衚瀺çšã®ååãã¯æ¬ç©ãšåºå¥ãã€ããããã«ãMS UI Gothic FakeããšããŠãããŸãã
å€æŽå
å€æŽåŸ
åºåãããã©ã³ãã Wine ããã§ãã¯ãããã©ã«ãã«ã³ããŒããŠãããŸãã
MS Shell Dlg
ã MS UI Gothic
ã®ãŸãŸã§ãã©ã³ãããIPA ã¢ã㌠UI ãŽã·ãã¯ãã«ãªããŸããã
ãã©ã³ããªã³ã¯ã䜿ããªããŠã Tahoma ã«ãåæ ãããŸãã
åæ§ã« ipagp-mona.ttf ã ipag-mona.ttf ã䜿ã£ãŠãïŒïŒ³ ãŽã·ãã¯ãããïŒïŒ³ ãŽã·ãã¯ããåœè£ ã§ããŸããã»ãšãã©ã®ã¢ããªã±ãŒã·ã§ã³ã¯ããã§å¯Ÿå¿ã§ãããšæããŸãããçšã« msgothic.ttc ãçŽæ¥æå®ããŠããã¢ããªã±ãŒã·ã§ã³ãããã®ã§ãã®å Žåã¯ãªãªãžãã«ãç¡ããšåäœããªããããããŸããã
- â»ã©ã€ã»ã³ã¹ã«ããæ¹å€ãçŠæ¢ãããŠãããã©ã³ãããããŸãã
- â»æ¬ç©ã® msgothic.ttc ãååšããå Žåãã©ããªããã¯ããããŸããã
ã²ãŒã çšã®ãã©ã³ããå°ãã
ããã¯ã¢ãã€ç³»ãã©ã³ãã«ãããšèŠããããªãããšããããŸããïŒçå¹ ã®ããæåãåããããšããããŸãïŒããã¢ãã€ã·ãŒã¿ã3çå¹ ïŒMTLc3m.ttfïŒããšãã¢ãã€Lãã«ããª3çå¹ ïŒMTLmr3m.ttfïŒãã§ãã° GitHub ã® Android ã®ããŒãž ã§ããŠã³ããŒãã§ããŸããæ°ãå€ãã®ã§ãjapaneseãã§æ€çŽ¢ãããšãããããããŸããããã®ä»ã®ã¢ãã€ã®ãã©ã³ãã¯å ¬åŒããŒãžã§ãŠãŒã¶ãŒç»é²ãããããšã§ããŠã³ããŒãã§ããŸãã