2008年1月16日 星期三

openSUSE 10.3 中 KDE 4.0 的字型

KDE 4.0 已經發布
openSUSE.org 也提供了 Live CD 以及 1-Click Install 安裝服務供 10.3 的用戶體驗
可惜現在 download.opensuse.org 當機中
若急著安裝者,用下面這個 1-Click
這是使用 twaren 提供的鏡像
KDE4-DEFAULT.ymp
<metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
<group>
<name>KDE 4 Default</name>
<summary>KDE 4.0 Desktop Environment</summary>
<description>The applications a KDE 4 installation would contain if it would be the default desktop.</description>
<repositories>
<repository recommended="true">
<name>KDE:KDE4</name>
<summary>KDE 4.0 builds</summary>
<description>Further description: http://en.opensuse.org/KDE4
</description>
<url>http://ftp.twaren.net/Linux/OpenSuSE/repositories/KDE:/KDE4/openSUSE_10.3/</url>
</repository>
<repository recommended="false">
<name>openSUSE:10.3</name>
<summary>openSUSE 10.3 distribution</summary>
<description>The openSUSE 10.3 distribution.</description>
<url>http://ftp.twaren.net/Linux/OpenSuSE/repositories/openSUSE:/10.3/standard/</url>
</repository>
</repositories>
<software>
<item>
<name>kdebase4</name>
<summary>The KDE Workspace Components</summary>
<description>This package contains the basic packages for a K Desktop Environment
workspace.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kdebase4-workspace</name>
<summary>The KDE Workspace Components</summary>
<description>This package contains the basic packages for a K Desktop Environment
workspace.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kdebase4-session</name>
<summary>The KDE Session</summary>
<description>This package contains the startup scripts necessary to start a KDE
session from kdm.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kwin</name>
<summary>KDE Window Manager</summary>
<description>KWin is the window manager of the K desktop environment.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-dolphin</name>
<summary>KDE File Manager</summary>
<description>This package contains the default file manager of KDE 4.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kwrite</name>
<summary>KDE Text Editor</summary>
<description>KWrite is the default text editor of the K desktop environment.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-keditbookmarks</name>
<summary>KDE Bookmark Editor</summary>
<description>This is an editor to edit your KDE-wide bookmark set.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-konqueror</name>
<summary>KDE File Manager and Browser</summary>
<description>Konqueror allows you to manage your files and browse the web in a
unified interface.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-konsole</name>
<summary>KDE Terminal</summary>
<description>Konsole is a terminal emulator for the K Desktop Environment.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kdialog</name>
<summary>KDE version of xdialog</summary>
<description>KDialog can be used to show nice dialog boxes from shell scripts.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kfind</name>
<summary>KDE Find File Utility</summary>
<description>KFind allows you to search for directories and files.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kdepasswd</name>
<summary>KDE Password Changer</summary>
<description>This application allows you to change your UNIX password.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kmag</name>
<summary>Screen Magnifier</summary>
<description>Magnifies a part of the screen.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kpat</name>
<summary>Patience card game</summary>
<description>KPatience is a collection of various patience games known all over the
world. It includes Klondike, Freecell, Yukon, Forty and Eight and many
more. The game has nice graphics and many different carddecks.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kreversi</name>
<summary>Reversi board game</summary>
<description>KReversi is a board game game where two players have to gain the
majority of pieces on the board. This is done by tactically placing
ones pieces to turn over the opponents pieces.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kmahjongg</name>
<summary>Mahjongg game</summary>
<description>KMahjongg is a clone of the well known tile based patience game of the
same name. In the game you have to empty a game board filled with piece
by removing pieces of the same type.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kmines</name>
<summary>Minesweeper-like game</summary>
<description>KMines is the classical Minesweeper game where you have to find mines
by logical deduction.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-ksudoku</name>
<summary>Generate and Solve Sudoku Puzzles in 2D or 3D</summary>
<description>KSudoku is a program that can generate and solve sudoku puzzles. The
word Sudoku means "single number in an alloted place" in Japanese. Some
cells are filled with a number at the beginnning: the remaining are to
be filled by the player using numbers from 1 to 9, without repeating a
number twice on each column, row, or subsquare.



Authors:
--------
Francesco Rossi <redsh@email.it></description>
</item>
<item>
<name>kde4-kruler</name>
<summary>Screen Ruler</summary>
<description>A screen ruler for the K Desktop Environment



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-ksnapshot</name>
<summary>Screen Capture Program</summary>
<description>A screenshot utility for KDE



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-okular</name>
<summary>Document Viewer</summary>
<description>Document viewing program; supports document in various formats



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-gwenview</name>
<summary>Simple Image Viewer for KDE</summary>
<description>Gwenview is a simple image viewer for KDE. It features a folder tree
window and a file list window, providing easy navigation of your file
hierarchy.



Authors:
--------
Aur�lien G�teau <aurelien.gateau@mail.dotcom.fr></description>
</item>
<item>
<name>kde4-kmix</name>
<summary>Sound Mixer</summary>
<description>KDE's full featured mini mixer



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kget</name>
<summary>Download Manager</summary>
<description>An advanced download manager for KDE



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kopete</name>
<summary>Instant Messenger</summary>
<description>Kopete is the KDE instant messenger and supports multiple protocols.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-krdc</name>
<summary>Remote Desktop Connection</summary>
<description>Krdc allows to connect to VNC and RDP compatible servers.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-krfb</name>
<summary>Desktop Sharing</summary>
<description>VNC-compatible server to share KDE desktops.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-knewsticker</name>
<summary>RDF newsticker applet</summary>
<description>A newsticker applet for the KDE panel.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kdenetwork4-filesharing</name>
<summary>KDE Network Libraries</summary>
<description>Required libraries for the following packages:

kdenetwork3-chat kdenetwork3-dialup kdenetwork3-lan kdenetwork3-mail
kdenetwork3-news kdenetwork3-query



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kate</name>
<summary>Advanced Text Editor</summary>
<description>Kate is an advanced text editor for KDE.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kweather</name>
<summary>Weather service and applet</summary>
<description>This package contains the KWeather service and an accompanying panel
applet.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kcalc</name>
<summary>Scientific Calculator</summary>
<description>KCalc is the KDE calculator tool.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kdessh</name>
<summary>Remote Application Executor</summary>
<description>Runs a program on a remote host



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kdf</name>
<summary>Disk Usage Viewer</summary>
<description>KDE free disk space utility



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kfloppy</name>
<summary>Floppy Formatter</summary>
<description>KDE Floppy Disk Utility



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kgpg</name>
<summary>Encryption Tool</summary>
<description>Kgpg is a simple GUI for gpg



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kwalletmanager</name>
<summary>Wallet Management Tool</summary>
<description>This application allows you to manage your KDE password wallet.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item>
<name>kde4-kwikdisk</name>
<summary>Removable Media Utility</summary>
<description>This utility allows you to manage removable media.



Authors:
--------
The KDE Team <kde@kde.org></description>
</item>
<item recommended="false">
<name>kde4-amarok</name>
<summary>Media Player for KDE</summary>
<description>Amarok is a media player for all kinds of media. This includes MP3, Ogg
Vorbis, audio CDs, podcasts and streams. Play lists can be stored in
.m3u or .pls files.



Authors:
--------
Christian Muehlhaeuser <chris@chris.de>
Mark Kretschmann <markey@web.de>
Max Howell <max.howell@methylblue.com>
Stanislav Karchebny <berk@inbox.ru></description>
</item>
<item recommended="false">
<name>kde4-digikam</name>
<summary>The kde4-digikam package</summary>
<description>The kde4-digikam package.</description>
</item>
<item recommended="false">
<name>kde4-ktorrent</name>
<summary>KDE BitTorrent Client</summary>
<description></description>
</item>
</software>
</group>
</metapackage>

將上面的文字另存到您的電腦,取名 *.ymp,用滑鼠點一下就會開始安裝程序
openSUSE 10.3 的使用者一定會發現內嵌的點陣字不見了
這是因為 KDE 4 使用了不同的引擎來演算 antialias
而 openSUSE 使用 embeddedbitmap 來標示使用點陣字
這應該是 openSUSE 團隊加上了某些 patches 的關係
(因為曾和使用 ubuntu 的網友討論過這問題, ubuntu 似乎無法使用 embeddedbitmap)
要解決這個問題就是要自己設定某些字體的某個大小不使用反鋸齒
您可以用下面這個檔案
57-kde4-chinese.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
KDE 4 seems not support embeddedbitmap, use antialias instead
-->
<match target="font">
<test name="family" compare="contains">
<string>文鼎PL細上海宋Uni</string>
<string>文鼎PL细上海宋Uni</string>
<string>AR PL ShanHeiSun Uni</string>
<string>文鼎PL新宋</string>
<string>AR PL New Sung</string>
<string>文鼎PL新宋 Mono</string>
<string>AR PL New Sung Mono</string>
<string>CMEX標宋</string>
<string>CMEXSong</string>
<string>方正宋体</string>
<string>FZSongTi</string>
<string>さざなみ明朝</string>
<string>Sazanami Mincho</string>
</test>
<test name="pixelsize" compare="more_eq">
<double>11.5</double>
</test>
<test name="pixelsize" compare="less_eq">
<double>16</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Artificial oblique for fonts without an italic or oblique version
-->

<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
<!-- and disable embedded bitmaps for artificial oblique -->
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
<!-- enable antialias for KDE 4 -->
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>

<!--
Synthetic emboldening for fonts that do not have bold face available
-->

<match target="font">
<!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq">
<const>medium</const>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!--
set the embolden flag
needed for applications using cairo, e.g. gucharmap, gedit, ...
-->
<edit name="embolden" mode="assign">
<bool>true</bool>
</edit>
<!--
set weight to bold
needed for applications using Xft directly, e.g. Firefox, ...
-->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
<!--
Hinting will be done before Embolden in freetype2,
but in such case, Embolden will get wrong result
on some glyph contours after applying hinting.
Actually, hinting should be done after embolden, but we can't
fix it in current freetype2. So as a workaround, just turn off
hinting if we want to do embolden.
-->
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
</match>
</fontconfig>

將這個檔案丟到 /etc/fonts/conf.d/底下
然後 fc-cache ,重新登入就可以使用內嵌的點陣字了
這個設定檔中指定了 openSUSE 常用的內嵌點陣字字型
包含了文鼎新宋體、CMEX標宋、方正宋体等
若您有其他內嵌點陣字的字體,您要自行加入他們
在設定大小的地方則是一個大概而已
(每個字體可能不同)
若您發現超過某大小的字會變得難看,您可以將最大字型調小
在 96 dpi 時大概是在 9,10,11,12,13 這幾個字體使用內嵌點陣字
另外我會建議將預設字型使用 DejaVu Sans 和 DejaVu Sans Mono 會讓英文字更好看
同樣 firefox 家族要在『編輯』->『偏好設定』中指定這兩個字體

3 則留言:

swyear 提到...

download.o.o 已經修復了

Figaro 提到...

不好意思請教一下黑眼珠大 ~ 在openSUSE 10.3中所安裝的KDE4是不是在中文的部分還有部分沒有翻譯完成呢 ? 我有透過官方網站的說明進行安裝,但發現有大部份的項目都還是英文的?這部分不知道您有沒有碰到~謝謝

swyear 提到...

10.3 中的 kde4 應該是很多沒翻譯沒錯
11.0 的狀況可能好不到哪去...
現在翻譯進度落後很多...