Author: alexander
Date: 2005-10-09 03:57:24 -0600 (Sun, 09 Oct 2005)
New Revision: 901

Modified:
   branches/utf8-newmake/BUGS
   branches/utf8-newmake/etc/fonts/local.conf
   branches/utf8-newmake/etc/profile
Log:
Adjusted font settings


Modified: branches/utf8-newmake/BUGS
===================================================================
--- branches/utf8-newmake/BUGS  2005-10-09 07:15:52 UTC (rev 900)
+++ branches/utf8-newmake/BUGS  2005-10-09 09:57:24 UTC (rev 901)
@@ -37,21 +37,10 @@
   truncates text in the header and the status line prematurely (uses byte count
   instead of properly calculated string width).
 
-lfs-bootscripts:
-  language selector is not well-tested. It also doesn't account for CJK.
-
 Xorg:
   The locale-names patch is not well-tested, and the configurator installed
   with the bootscripts uses locale names that works even without the patch.
 
-freetype/fontconfig:
-  Need to select autohinting vs native hinting based on the locale, in order
-  to avoid blurry and ugly text.
-  
-vte:
-  Implements highly suboptimal font substitution algorithm, see
-  
http://archive.linuxfromscratch.org/mail-archives/livecd/2005-September/001589.html
-
 links:
   This program handles input in UTF-8 locales properly only if started in
   the graphical mode on the X display. Package dropped, replaced with w3m.

Modified: branches/utf8-newmake/etc/fonts/local.conf
===================================================================
--- branches/utf8-newmake/etc/fonts/local.conf  2005-10-09 07:15:52 UTC (rev 
900)
+++ branches/utf8-newmake/etc/fonts/local.conf  2005-10-09 09:57:24 UTC (rev 
901)
@@ -2,6 +2,33 @@
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <!-- /etc/fonts/local.conf file for local customizations -->
 <fontconfig>
+<!--  Use the Autohinter instead of bytecode interpreter because European
+      fonts on the CD have poor native hints for non-ASCII characters -->
+  <match target="font">
+    <edit name="autohint" mode="assign"><bool>true</bool></edit>
+  </match>
+<!-- CJK characters should not be antialiased below 20 px
+     FIXME: is it possible to achieve using character
+     ranges instead of font names? -->
+  <match target="font">
+    <test target="font" name="family" qual="any">
+       <string>AR PL KaitiM Big5</string>
+       <string>AR PL KaitiM GB</string>
+       <string>AR PL Mingti2L Big5</string>
+       <string>AR PL SungtiL GB</string>
+       <string>Baekmuk Gulim</string>
+       <string>Baekmuk Dotum</string>
+       <string>Baekmuk Batang</string>
+       <string>Baekmuk Headline</string>
+       <string>Kochi Gothic</string>
+       <string>Kochi Mincho</string>
+    </test>
+    <test name="pixelsize" compare="less">
+       <double>20.0</double>
+    </test>
+    <edit name="antialias" mode="assign"><bool>false</bool></edit>
+    <edit name="autohint" mode="assign"><bool>false</bool></edit>
+  </match>
 <!--
   Enable sub-pixel rendering
        <match target="font">
@@ -12,5 +39,4 @@
        </match>
 -->
 <dir>/usr/X11R6/lib/X11/fonts/TTF</dir>
-<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
 </fontconfig>

Modified: branches/utf8-newmake/etc/profile
===================================================================
--- branches/utf8-newmake/etc/profile   2005-10-09 07:15:52 UTC (rev 900)
+++ branches/utf8-newmake/etc/profile   2005-10-09 09:57:24 UTC (rev 901)
@@ -16,6 +16,13 @@
 
 [EMAIL PROTECTED]
 
-export PATH INPUTRC G_FILENAME_ENCODING PKG_CONFIG_PATH XML_CATALOG_FILES 
WWW_HOME NNTPSERVER TERMCMD XMODIFIERS
+# Make sure that VTE uses antialiasing/hinting settings from fontconfig
+VTE_USE_XFT=0
+VTE_USE_FT2=0
+VTE_USE_PANGO=1
 
+export PATH INPUTRC G_FILENAME_ENCODING PKG_CONFIG_PATH XML_CATALOG_FILES
+export WWW_HOME NNTPSERVER TERMCMD XMODIFIERS
+export VTE_USE_XFT VTE_USE_FT2 VTE_USE_PANGO
+
 source /etc/bashrc

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to