看板FreeBSD
标 题Re: 请教 lilypond 中文 utf-8 font (freeBSD)
发信站Shaw Residential Internet (Thu Jan 4 19:55:48 2007)
转信站ptt!ctu-reader!ctu-peer!news.nctu!newshub.sdsu.edu!newscon04.news.prod
问题就是,
1
/usr/local/etc/fonts/fonts.conf
/usr/local/etc/fonts//local.conf
还有一点,
2. 原来还须要装 linux-fontconfig
> [edt1023@lgj ~]$ pkg_info|grep fontconfig
> fontconfig-2.3.2_6,1 An XML-based font configuration API for X Windows
> linux-fontconfig-2.2.3_5 Linux/i386 binary of Fontconfig
感谢感谢 ^_^
- 老音学生 -
===
"老音学生" <
[email protected]> 撰写於邮件新闻:zG5nh.548172$1T2.423689@pd7urf2no...
> 非常感谢 Edward 李佬循循善诱
> 终於有了 - 成功~ - 至少有成功一次了 :)
> 问题就是在
> /usr/local/etc/fonts/fonts.conf
> 及
> /usr/X11R6/etc/fonts/local.conf
> 的设定
> 设好後,把抓来的 font 档 mv 归位
> $ fc-cache
> $ lilypond filename.ly
> 直接 - 没经过 svg
>
> 若有机会自当 面谢 :)
>
>
> - 老音学生 -
>
> ===
>
> "蒙古大夫 2.0" <[email protected]> 撰写於邮件新闻:[email protected]...
>>※ 引述《
[email protected] (老音学生)》之铭言:
>>> 说感谢其实还不够,实在是非常 感激 Edward 李大佬还愿意指示迷津... ^_^~..
>>
>> 其实,你可以实际动手测试一下效果,并不如想像中的复杂。而且,
>> google 可节省你许多无谓的时间浪费。
>>
>>> >
http://edt1023.sayya.org/fontconfig/fontconfig-user.html
>>> 我想这正是我这个问题 的重点吧
>>> 我的 /usr/local/etc/ 及 /etc/ 内都没有 fonts/ 目录.
>>
>> [edt1023@lgj ~]$ pkg_info|grep fontconfig
>> fontconfig-2.3.2_6,1 An XML-based font configuration API for X Windows
>> linux-fontconfig-2.2.3_5 Linux/i386 binary of Fontconfig
>>
>> [edt1023@lgj ~]$ pkg_info -L 'fontconfig-2.3.2_6,1'
>> Information for fontconfig-2.3.2_6,1:
>>
>> Files:
>> /usr/X11R6/man/man1/fc-match.1.gz
>> [...]
>> /usr/X11R6/etc/fonts/conf.d/autohint.conf
>> /usr/X11R6/etc/fonts/conf.d/no-bitmaps.conf
>> /usr/X11R6/etc/fonts/conf.d/no-sub-pixel.conf
>> /usr/X11R6/etc/fonts/conf.d/sub-pixel.conf
>> /usr/X11R6/etc/fonts/conf.d/unhinted.conf
>> /usr/X11R6/etc/fonts/conf.d/yes-bitmaps.conf
>> /usr/X11R6/etc/fonts/fonts.conf.default
>> /usr/X11R6/etc/fonts/fonts.dtd
>> [...]
>>
>> [edt1023@lgj ~]$ grep -B3 local.conf
>> /usr/X11R6/etc/fonts/fonts.conf.default
>> <!--
>> DO NOT EDIT THIS FILE.
>> IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
>> LOCAL CHANGES BELONG IN 'local.conf'.
>> --
>>
>> Note that the normal 'make install' procedure for fontconfig is to
>> replace any existing fonts.conf file with the new version. Place
>> any local customizations in local.conf which this file references.
>> --
>> Load local system customization file
>> -->
>> <include ignore_missing="yes">conf.d</include>
>> <include ignore_missing="yes">local.conf</include>
>> [...]
>>
>> 你可以放在 /usr/X11R6/etc/fonts/local.conf 或是 ~/.fonts.conf
>>
>> [edt1023@lgj ~]$ cat /usr/X11R6/etc/fonts/local.conf
>> <?xml version="1.0"?>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>> <fontconfig>
>> <!-- Font directory list -->
>> <dir>/usr/local/share/lilypond/2.10.0/fonts</dir>
>> </fontconfig>
>>
>> 这些设定内容,在我给的连结中的 example 里头就有,那个中文版是
>> minihair(陈育青)帮忙中译的 fontconfig 官方使用手册。
>>
>>> 这目录及目录内的设定档, 不会是要自己手写到处去找再 copy 来吧 !?
>>
>> 额外的或自行安装的字型,这些设定当然是要安装的人手动去设置。除非
>> 你把他打包成 port/package 的形式去自动处理。lilypond 并不清楚你
>> 的系统是如何配置的。
>>
>>> 可否请指示一下,要去哪制作一些 default 档?
>>> 我已先从上面网页 copy 其中的 /usr/local/etc/fonts/fonts.conf 了 - 是要这样吗!?
>>> (然後每次再手动修改 /usr/local/etc/fonts/fonts.conf 新增自己 ftp 抓来 或
>>> /usr/ports/x11-fonts/ 新灌的字型档吗?
>>> 或是 fontconfig 会自己处理?)
>>> ....... ?
>>
>> 这些问题,严格来说和 lilypond 并没有直接关系,可能另立个 subject
>> 来讨论会比较好,这样其他人有这类问题,他们也可以看标题来查阅,而
>> 不会造成同样的 subject,讨论变成没完没了,请改变一个 subject 问
>> 到底的习惯。
>>
>> 我会直接给连结,是要你去熟悉一下 fontconfig 是怎麽运作的,至少一
>> 些基础的设定要会用,否则往後你还是一样会碰到问题,目前 X 的相关
>> 软体绝大部份都是靠它找字型。
>>
>> lilypond 是排版系统的一个环节,而目前的桌上排版系统,没有 X 将会很
>> 不方便处理,这些相关的议题,没有办法全部容纳到 lilypond 这个讨论串。
>>
>>
>> --
>> 道隐於小成,言隐於荣华。(庄子.齐物论)
>> --
>>
※ Origin: SayYA 资讯站 <bbs.sayya.org>
>>
◆ From: edt1023.sayya.org
>
>