Re: 請教 lilypond 中文 utf-8 font (freeBSD)

看板FreeBSD作者時間19年前 (2007/01/04 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/17 (看更多)
非常感謝 Edward 李佬循循善誘 終於有了 - 成功~ - 至少有成功一次了 :) 問題就是在 /usr/local/etc/fonts/fonts.conf 及 /usr/X11R6/etc/fonts/local.conf 的設定 設好後,把抓來的 font 檔 mv 歸位 $ fc-cache $ lilypond filename.ly 直接 - 沒經過 svg 若有機會自當 面謝 :) - 老音學生 - === "蒙古大夫 2.0" <Edward.bbs@bbs.sayya.org> 撰寫於郵件新聞:4S0DS6$nuC@bbs.sayya.org... >※ 引述《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
文章代碼(AID): #15dEo400 (FreeBSD)
討論串 (同標題文章)
文章代碼(AID): #15dEo400 (FreeBSD)