登入畫面 輸入密碼處 中文部分出現方格 [論壇 - Ubuntu基本設定]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

(1) 2 »


登入畫面 輸入密碼處 中文部分出現方格
會員一級
註冊日期:
2016/10/27 21:24
所屬群組:
已註冊使用者
等級: 2
HP : 0 / 28
MP : 3 / 572
EXP: 12
離線
如題

這問題似乎是在我裝完字體後發生的
進去桌面後 一切正常
只有登入畫面會這樣 (圖片請看附件
請問有解嗎???

然後我裝的字體是 Google Noto 思源黑體
安裝的步驟則是依google網站走
https://www.google.com/get/noto/help/install/

然後我是用這個指令
# for all users

sudo mkdir -p /usr/share/fonts/opentype/noto
sudo cp *otf *otc /usr/share/fonts/opentype/noto
sudo fc-cache -f -v # optional

如果是因為這樣裝造成的 那請問要怎樣改?

附件:



jpg  1478235000799.jpg (107.78 KB)
47682_581c153c2f92a.jpg 1280X718 px

2016/11/4 12:57
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
我沒去探索實際發生的關鍵因素,

所以給您幾篇參考連結,讓您有起點可以去探索,

* 回覆: opera 菜單中文無法顯示
* 請問該如何設定全系統中文皆使用思源黑體?

關於字型設定我之前有建立一篇「索引」,有紀錄討論案例和一些參考連結。

然後我之前設定字型的經驗,有一個要注意的就是「檔案權限」,可以參考下面兩篇。

* 手動安裝全字庫字型(CNS11643)
* 手動安裝Noto字型

另外在「16.04」有「Noto字型」的相關套件,
不過Google目前「新Release的」,不確定是否已經同步更新了。

剛在我的系統「Xubuntu 16.04 64位元英文界面」,簡單做了一點探索,


執行


$ dpkg -l '*noto*'



顯示


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-===================-==================
un fonts-noto <none> <none> (no description available)
ii fonts-noto-cjk 1:1.004+repack2-1~u all "No Tofu" font families with large Unicode coverage (CJK)
ii fonts-noto-hinted 20160116-1 all "No Tofu" font families with large Unicode coverage (hinted)
ii fonts-noto-mono 20160116-1 all "No Tofu" monospaced font family with large Unicode coverage
un fonts-noto-unhinted <none> <none> (no description available)



## Package

* fonts-noto-cjk
* fonts-noto-hinted
* fonts-noto-mono

可以執行下面指令,觀看「changelog」。


$ apt-get changelog fonts-noto-mono
$ apt-get changelog fonts-noto-hinted
$ apt-get changelog fonts-noto-mono


## 探索系統上的檔案

執行下面指令,觀看「fonts-noto-cjk」這個套件,在系統上的檔案路徑。


$ dpkg -L fonts-noto-cjk



顯示


/.
/usr
/usr/share
/usr/share/fonts
/usr/share/fonts/opentype
/usr/share/fonts/opentype/noto
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/doc
/usr/share/doc/fonts-noto-cjk
/usr/share/doc/fonts-noto-cjk/NEWS.gz
/usr/share/doc/fonts-noto-cjk/copyright



執行


$ dpkg -L fonts-noto-mono


顯示


/.
/usr
/usr/share
/usr/share/bug
/usr/share/bug/fonts-noto-mono
/usr/share/bug/fonts-noto-mono/presubj
/usr/share/bug/fonts-noto-mono/script
/usr/share/fonts
/usr/share/fonts/truetype
/usr/share/fonts/truetype/noto
/usr/share/fonts/truetype/noto/NotoMono-Regular.ttf
/usr/share/doc
/usr/share/doc/fonts-noto-mono
/usr/share/doc/fonts-noto-mono/FAQ.md.gz
/usr/share/doc/fonts-noto-mono/copyright
/usr/share/doc/fonts-noto-mono/README.md
/usr/share/doc/fonts-noto-mono/NEWS.gz
/usr/share/doc/fonts-noto-mono/changelog.Debian.gz
/etc
/etc/fonts
/etc/fonts/conf.avail
/etc/fonts/conf.avail/30-droid-noto-mono.conf



執行


$ dpkg -L fonts-noto-hinted



顯示


/.
/usr
/usr/share
/usr/share/bug
/usr/share/bug/fonts-noto-hinted
/usr/share/bug/fonts-noto-hinted/presubj
/usr/share/bug/fonts-noto-hinted/script
/usr/share/fonts
/usr/share/fonts/truetype
/usr/share/fonts/truetype/noto
/usr/share/fonts/truetype/noto/NotoSansMalayalamUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansTamil-Regular.ttf
/usr/share/fonts/truetype/noto/NotoNaskhArabic-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansDevanagariUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansMyanmar-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansGeorgian-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerif-BoldItalic.ttf
/usr/share/fonts/truetype/noto/NotoSansSinhala-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansDevanagari-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansThaiUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansTamil-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansHebrew-Regular.ttf
/usr/share/fonts/truetype/noto/NotoKufiArabic-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansKhmerUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansDevanagariUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoNaskhArabic-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerif-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansOriyaUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansKhmer-Bold.ttf
/usr/share/fonts/truetype/noto/NotoKufiArabic-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansTamilUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSans-BoldItalic.ttf
/usr/share/fonts/truetype/noto/NotoSansGujaratiUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansCham-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansTibetan-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansThaana-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansKannada-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifGujarati-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifGujarati-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansTamilUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansMalayalam-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifArmenian-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansGujaratiUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifTelugu-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifKhmer-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifThai-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifMalayalam-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifArmenian-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansMyanmarUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansTelugu-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansOriya-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansEthiopic-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansKannadaUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansGujarati-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifBengali-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifLao-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansBengaliUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansGurmukhi-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansKhmerUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansHebrew-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansCham-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansGurmukhiUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifThai-Regular.ttf
/usr/share/fonts/truetype/noto/NotoNaskhArabicUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansBengali-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansGujarati-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansGeorgian-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifTamil-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansThai-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansTeluguUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansDevanagari-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifBengali-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSans-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansUI-BoldItalic.ttf
/usr/share/fonts/truetype/noto/NotoSerifMalayalam-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerif-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSerifGeorgian-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifLao-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoNaskhArabicUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansLaoUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansMyanmarUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifGeorgian-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansKhmer-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifKannada-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansLaoUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansTelugu-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifKhmer-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansBengaliUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansThaiUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansArmenian-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerif-Italic.ttf
/usr/share/fonts/truetype/noto/NotoSansGurmukhi-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansTeluguUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansSinhala-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansOriya-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansGurmukhiUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSans-Italic.ttf
/usr/share/fonts/truetype/noto/NotoSansBengali-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansArmenian-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansThaana-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansKannadaUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansThai-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansMalayalamUI-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansEthiopic-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansKannada-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansLao-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansUI-Italic.ttf
/usr/share/fonts/truetype/noto/NotoSerifTamil-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansMyanmar-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansTibetan-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansMalayalam-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifTelugu-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansLao-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansOriyaUI-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSerifKannada-Regular.ttf
/usr/share/doc
/usr/share/doc/fonts-noto-hinted
/usr/share/doc/fonts-noto-hinted/FAQ.md.gz
/usr/share/doc/fonts-noto-hinted/copyright
/usr/share/doc/fonts-noto-hinted/README.md
/usr/share/doc/fonts-noto-hinted/NEWS.gz
/usr/share/doc/fonts-noto-hinted/changelog.Debian.gz
/etc
/etc/fonts
/etc/fonts/conf.avail
/etc/fonts/conf.avail/30-droid-noto.conf




更多的套件操作實務,請參考「這篇索引」。

2016/11/4 13:56
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
管理員
註冊日期:
2005/6/11 0:21
來自 Chia-yi City
所屬群組:
已註冊使用者
討論區管理群
等級: 20
HP : 0 / 482
MP : 160 / 25839
EXP: 31
離線
/etc/default/locale 內容如何?

2016/11/4 22:47
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員一級
註冊日期:
2016/10/27 21:24
所屬群組:
已註冊使用者
等級: 2
HP : 0 / 28
MP : 3 / 572
EXP: 12
離線
我不太了解你說的
是像附圖那樣的內容嘛?

附件:



png  擷取選取區域_017.png (6.12 KB)
47682_581ec3d712b80.png 324X75 px

2016/11/6 13:44
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員一級
註冊日期:
2016/10/27 21:24
所屬群組:
已註冊使用者
等級: 2
HP : 0 / 28
MP : 3 / 572
EXP: 12
離線
另外 在這篇"請問該如何設定全系統中文皆使用思源黑體? "
我已看過 也是跟我有類似的問題
不過也沒有能解決的回答= =

2016/11/6 14:14
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
題外話,

關於「/etc/default/locale」的用途,在最近「這篇」有「討論」到,

我在「這篇」有紀錄一些相關的連結。

* https://help.ubuntu.com/community/Locale
* https://wiki.debian.org/Locale

通常我都查詢「ubuntu locale」就可以查到一篇參考文章「[Ubuntu] 如何設定語系locale」。

或是執行


$ man locale,也可以查到相關的說明

(註: 以下測試「Xubuntu 16.04 64位元 英文界面」)


然後執行


$ whereis locale




顯示


locale: /usr/bin/locale /usr/lib/locale /etc/locale.gen /etc/locale.alias /usr/include/locale.h /usr/share/locale /usr/share/man/man1/locale.1.gz /usr/share/man/man5/locale.5.gz /usr/share/man/man7/locale.7.gz



然後執行


$ dpkg -S /usr/bin/locale



顯示


libc-bin: /usr/bin/locale



上面的表示,「/usr/bin/locale」這個檔,屬於「libc-bin」這個套件。


執行下面指令,了解「libc-bin」這個套件,包含哪些檔案。


$ dpkg -L libc-bin



顯示


/.
/sbin
/sbin/ldconfig.real
/sbin/ldconfig
/etc
/etc/bindresvport.blacklist
/etc/gai.conf
/etc/ld.so.conf
/etc/ld.so.conf.d
/etc/ld.so.conf.d/libc.conf
/etc/default
/etc/default/nss
/usr
/usr/sbin
/usr/sbin/iconvconfig
/usr/sbin/zic
/usr/bin
/usr/bin/pldd
/usr/bin/getconf
/usr/bin/locale
/usr/bin/getent
/usr/bin/iconv
/usr/bin/tzselect
/usr/bin/zdump
/usr/bin/catchsegv
/usr/bin/localedef
/usr/bin/ldd
/usr/lib
/usr/lib/locale
/usr/lib/locale/C.UTF-8
/usr/lib/locale/C.UTF-8/LC_COLLATE
/usr/lib/locale/C.UTF-8/LC_TELEPHONE
/usr/lib/locale/C.UTF-8/LC_MONETARY
/usr/lib/locale/C.UTF-8/LC_PAPER
/usr/lib/locale/C.UTF-8/LC_NUMERIC
/usr/lib/locale/C.UTF-8/LC_NAME
/usr/lib/locale/C.UTF-8/LC_MEASUREMENT
/usr/lib/locale/C.UTF-8/LC_CTYPE
/usr/lib/locale/C.UTF-8/LC_ADDRESS
/usr/lib/locale/C.UTF-8/LC_MESSAGES
/usr/lib/locale/C.UTF-8/LC_MESSAGES/SYS_LC_MESSAGES
/usr/lib/locale/C.UTF-8/LC_IDENTIFICATION
/usr/lib/locale/C.UTF-8/LC_TIME
/usr/share
/usr/share/libc-bin
/usr/share/libc-bin/nsswitch.conf
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libc-bin
/usr/share/doc
/usr/share/doc/libc-bin
/usr/share/doc/libc-bin/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/catchsegv.1.gz
/usr/share/man/man1/getconf.1.gz
/usr/share/man/man1/tzselect.1.gz
/usr/share/doc/libc-bin/changelog.Debian.gz



這個也可以在「/var/lib/dpkg/info/libc-bin.list」這的檔案找到,
只要執行「cat /var/lib/dpkg/info/libc-bin.list」就可以看到。

不過在「libc-bin」這個套件,並沒有看到「/etc/default/locale」。

執行下面指令,要找「/etc/default/locale」是屬於那個「套件」。


$ dpkg -S /etc/default/locale



顯示


dpkg-query: no path found matching pattern /etc/default/locale



表示「/etc/default/locale」這個檔不是屬於套件,

一個可能,就是安裝過程中,由「MaintainerScripts」產生的。

執行


$ grep '/etc/default/locale' /var/lib/dpkg/info/* -R



顯示


/var/lib/dpkg/info/dictionaries-common.config: # If system is already installed use /etc/default/locale contents.
/var/lib/dpkg/info/dictionaries-common.config: if ( -e "/etc/default/locale" ){
/var/lib/dpkg/info/language-selector-common.postinst:if dpkg --compare-versions "$2" lt-nl 0.85 && [ -e /etc/default/locale ] \
/var/lib/dpkg/info/language-selector-common.postinst: . /etc/default/locale
/var/lib/dpkg/info/locales.config:EE="/etc/default/locale"
/var/lib/dpkg/info/locales.config:DEFAULT_ENVIRONMENT="$(cat /etc/environment /etc/default/locale 2>/dev/null | awk '/^LANG=/ {gsub("\"", ""); sub("LANG=", ""); lang=$0;} END {print lang}')"
/var/lib/dpkg/info/locales.postinst:EE="/etc/default/locale"
/var/lib/dpkg/info/locales.postrm: rm -f /etc/default/locale



想起來我之前在「這篇」有紀錄尚未了解是由那個「MaintainerScripts」產生的。

目前看起來比較有可能的是「/var/lib/dpkg/info/locales.postinst」這個檔。

所以來探索套件「locales

執行


$ dpkg -L locales



顯示


/.
/etc
/etc/locale.alias
/usr
/usr/sbin
/usr/sbin/validlocale
/usr/sbin/locale-gen
/usr/sbin/update-locale
...略...



執行


$ grep /etc/default/locale /usr/sbin/update-locale -n



顯示


7:my $locale_file = "/etc/default/locale";
31: (Default: /etc/default/locale)



所以用「update-locale」來當關鍵字,在「/var/lib/dpkg/info/」找詢線索。


$ grep 'update-locale' /var/lib/dpkg/info/* -R



顯示


/var/lib/dpkg/info/locales.list:/usr/sbin/update-locale
/var/lib/dpkg/info/locales.list:/usr/share/man/man8/update-locale.8.gz
/var/lib/dpkg/info/locales.md5sums:647bb3ec92ce7423c89492e8c3f21c07 usr/sbin/update-locale
/var/lib/dpkg/info/locales.md5sums:0adbb3485970ce8ac9225f3eb8aa9d83 usr/share/man/man8/update-locale.8.gz
/var/lib/dpkg/info/locales.postinst: update-locale --no-checks LANG
/var/lib/dpkg/info/locales.postinst: update-locale "LANG=$DEFAULT_ENVIRONMENT"




還是找到「/var/lib/dpkg/info/locales.postinst」這個檔。

以前我沒認真看原始碼,

可以在「/var/lib/dpkg/info/locales.postinst」找到下面這一段


if ! [ -e $EE ] || [ -n "$DEBCONF_RECONFIGURE" ] ; then
# Remove previous definitions
update-locale --no-checks LANG

# Set default LANG environment variable
if [ -n "$DEFAULT_ENVIRONMENT" ] && [ "$DEFAULT_ENVIRONMENT" != "None" ]; then
update-locale "LANG=$DEFAULT_ENVIRONMENT"
fi
fi



上面的 「[ -e $EE ] || [ -n "$DEBCONF_RECONFIGURE" ]」可以執行「help test」或是執行「help [」找到相關的說明。

可以額外閱讀「bash-handbook」。

不過我上面繞了這麼一大圈,
其實在「/etc/default/locale」的第一行就有註解了
「# File generated by update-locale」

可以執行「cat /etc/default/locale | sed -n '1p'」
或是執行「cat /etc/default/locale | grep '#'」
或是執行「grep '#' /etc/default/locale」
就可以看到上面那一行註解。

================================================================================

設定font會跟目前環境的locale設定相關。

執行


$ cat /etc/fonts/conf.d/69-language-selector-zh-tw.conf



會看到下面這一段


...略...
<test name="lang">
<string>zh-tw</string>
</test>
...略...



更多可以閱讀「Ubuntu Wiki / HowtoCustomFontswithFontconfig

或是閱讀「man fonts-conf」或「/usr/share/doc/fontconfig/fontconfig-user.html」這個檔。

或是上面回覆我給你的一些參考連結。

或是探索「fontconfig」或是「fontconfig-config」這個套件。

和學會一些輔助工具的使用方式fc-match」,「fc-list」...

例如執行


fc-list :lang=zh



可以看到一些列表。

探索套件,則是

執行


$ dpkg -L fontconfig



顯示


/.
/usr
/usr/bin
/usr/bin/fc-match
/usr/bin/fc-list
/usr/bin/fc-cat
/usr/bin/fc-cache
/usr/bin/fc-query
/usr/bin/fc-scan
/usr/bin/fc-validate
/usr/bin/fc-pattern
/usr/share
/usr/share/doc-base
/usr/share/doc-base/fontconfig-user
/usr/share/apport
/usr/share/apport/package-hooks
/usr/share/apport/package-hooks/source_fontconfig.py
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/fontconfig
/usr/share/doc
/usr/share/doc/fontconfig
/usr/share/doc/fontconfig/copyright
/usr/share/doc/fontconfig/fontconfig-user.pdf.gz
/usr/share/doc/fontconfig/README.Debian
/usr/share/doc/fontconfig/fontconfig-user.html
/usr/share/doc/fontconfig/fontconfig-user.txt.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/fc-cat.1.gz
/usr/share/man/man1/fc-list.1.gz
/usr/share/man/man1/fc-match.1.gz
/usr/share/man/man1/fc-scan.1.gz
/usr/share/man/man1/fc-pattern.1.gz
/usr/share/man/man1/fc-cache.1.gz
/usr/share/man/man1/fc-query.1.gz
/usr/share/man/man1/fc-validate.1.gz
/usr/share/doc/fontconfig/AUTHORS
/usr/share/doc/fontconfig/README.gz
/usr/share/doc/fontconfig/changelog.Debian.gz



執行


$ dpkg -L fontconfig-config



顯示


/.
/etc
/etc/fonts
/etc/fonts/conf.avail
/etc/fonts/conf.avail/10-hinting-medium.conf
/etc/fonts/conf.avail/10-no-sub-pixel.conf
/etc/fonts/conf.avail/70-yes-bitmaps.conf
/etc/fonts/conf.avail/10-hinting-full.conf
/etc/fonts/conf.avail/10-sub-pixel-rgb.conf
/etc/fonts/conf.avail/10-sub-pixel-vbgr.conf
/etc/fonts/conf.avail/30-urw-aliases.conf
/etc/fonts/conf.avail/10-antialias.conf
/etc/fonts/conf.avail/10-autohint.conf
/etc/fonts/conf.avail/25-unhint-nonlatin.conf
/etc/fonts/conf.avail/45-latin.conf
/etc/fonts/conf.avail/40-nonlatin.conf
/etc/fonts/conf.avail/30-metric-aliases.conf
/etc/fonts/conf.avail/60-latin.conf
/etc/fonts/conf.avail/65-nonlatin.conf
/etc/fonts/conf.avail/80-delicious.conf
/etc/fonts/conf.avail/50-user.conf
/etc/fonts/conf.avail/49-sansserif.conf
/etc/fonts/conf.avail/65-khmer.conf
/etc/fonts/conf.avail/11-lcdfilter-legacy.conf
/etc/fonts/conf.avail/20-unhint-small-vera.conf
/etc/fonts/conf.avail/10-sub-pixel-vrgb.conf
/etc/fonts/conf.avail/10-hinting-slight.conf
/etc/fonts/conf.avail/69-unifont.conf
/etc/fonts/conf.avail/11-lcdfilter-light.conf
/etc/fonts/conf.avail/70-force-bitmaps.conf
/etc/fonts/conf.avail/90-synthetic.conf
/etc/fonts/conf.avail/10-unhinted.conf
/etc/fonts/conf.avail/65-fonts-persian.conf
/etc/fonts/conf.avail/10-scale-bitmap-fonts.conf
/etc/fonts/conf.avail/53-monospace-lcd-filter.conf
/etc/fonts/conf.avail/11-lcdfilter-default.conf
/etc/fonts/conf.avail/70-no-bitmaps.conf
/etc/fonts/conf.avail/10-sub-pixel-bgr.conf
/etc/fonts/conf.avail/51-local.conf
/etc/fonts/conf.avail/10-hinting.conf
/etc/fonts/fonts.conf
/etc/fonts/conf.d
/etc/fonts/conf.d/README
/usr
/usr/share
/usr/share/doc
/usr/share/doc/fontconfig-config
/usr/share/doc/fontconfig-config/AUTHORS
/usr/share/doc/fontconfig-config/copyright
/usr/share/doc/fontconfig-config/README.gz
/usr/share/doc/fontconfig-config/changelog.Debian.gz
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/fonts-conf.5.gz
/etc/fonts/conf.d/30-urw-aliases.conf
/etc/fonts/conf.d/10-antialias.conf
/etc/fonts/conf.d/45-latin.conf
/etc/fonts/conf.d/40-nonlatin.conf
/etc/fonts/conf.d/30-metric-aliases.conf
/etc/fonts/conf.d/60-latin.conf
/etc/fonts/conf.d/65-nonlatin.conf
/etc/fonts/conf.d/80-delicious.conf
/etc/fonts/conf.d/50-user.conf
/etc/fonts/conf.d/49-sansserif.conf
/etc/fonts/conf.d/20-unhint-small-vera.conf
/etc/fonts/conf.d/10-hinting-slight.conf
/etc/fonts/conf.d/69-unifont.conf
/etc/fonts/conf.d/90-synthetic.conf
/etc/fonts/conf.d/65-fonts-persian.conf
/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
/etc/fonts/conf.d/11-lcdfilter-default.conf
/etc/fonts/conf.d/70-no-bitmaps.conf
/etc/fonts/conf.d/51-local.conf
/etc/fonts/conf.d/10-hinting.conf




以上參考


2016/11/6 15:30
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
雞蛋糕 寫到:
另外 在這篇"請問該如何設定全系統中文皆使用思源黑體? "
我已看過 也是跟我有類似的問題
不過也沒有能解決的回答= =


歹勢拉,

我在上面的「回覆 #2」,
在回覆您的時候,
大概就猜你應該是看過「請問該如何設定全系統中文皆使用思源黑體?」那篇,
也知道那篇可能無解,只是回覆您時,有聯想到那篇討論,一併貼出來參考。

另外上面的「回覆#2」一開始有提「我沒去探索實際發生的關鍵因素」,
所以我無法給您直接的答案,
也因此我上面回覆只有給您一些參考連結和探索方法,

由您自行探索相關的成因,進而找到相關的解法。

再不然就是等待其他人,
有遇到跟您有相同狀況,並且也了解解法的人,
或是了解「實際發生的關鍵因素」的人,
來直接回答您的問題摟。

再次說聲歹勢



## 額外參考

* 查詢「lsof」(討論串)
* lightdm

2016/11/6 15:45
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 905
MP : 679 / 30304
EXP: 23
離線
剛想到,「這裡」也有些參考資料。

雖然不見得能解決您的問題,不過可以讓您有參考可以去探索。


2016/11/6 17:42
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
管理員
註冊日期:
2005/6/11 0:21
來自 Chia-yi City
所屬群組:
已註冊使用者
討論區管理群
等級: 20
HP : 0 / 482
MP : 160 / 25839
EXP: 31
離線
/etc/default/locale 看起來很正常。

如果 fontconfig 把 Noto Sans CJK 挪到第一位還沒有辦法改善,那看來應該是 display manager 的問題了… Orz

2016/11/6 22:10
應用擴展 工具箱
回覆: 登入畫面 輸入密碼處 中文部分出現方格
管理員
註冊日期:
2005/6/11 0:21
來自 Chia-yi City
所屬群組:
已註冊使用者
討論區管理群
等級: 20
HP : 0 / 482
MP : 160 / 25839
EXP: 31
離線
此外,Xenial (16.04) 已經預設用 Noto Sans CJK 了,所以你沒有必要自己再裝一次,可能會造成系統錯亂,建議砍掉。

sudo rm -R /usr/share/fonts/opentype/noto/

然後重裝 fonts-noto-cjk

sudo apt-get install fonts-noto-cjk

2016/11/6 22:12
應用擴展 工具箱

(1) 2 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.