回文章列表
作者Edward.bbs@bbs.sayya.org (蒙古大夫 2.0), 信區: 386bsd
標題Re: =?Big5?Q?=BD=D0=B1=D0_lilypond_=A4=A4=A4=E5_utf-8_font_(freeBSD)?=
時間SayYA 資訊站 (Thu Jan 4 11:53:42 2007)
轉信站: GIBBS!ccnews.ncku!news.ccns.ncku!news.mksh.phc!news.nsysu!ctu-gate!ctu-
Origin: kenduest.math.nctu.edu.tw

※ 引述《goaway@nowhere.not (老音學生)》之銘言:
> 說感謝其實還不夠,實在是非常 感激 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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻