The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

TrueType шрифты в Mozilla (mozilla font truetype rus)


<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>
Ключевые слова: mozilla, font, truetype, rus,  (найти похожие документы)
From: http://www.mozilla.org Date: Mon, 20 Sep 2004 18:21:07 +0000 (UTC) Subject: TrueType шрифты в Mozilla Оригинал: http://www.mozilla.org/projects/fonts/unix/enabling_truetype.html 1) Get a Mozilla/Netscape build with TrueType support compiled in. 2) Check you have the FreeType2 library. 3) Check that the FreeType2 library is on the standard lib path. 4) Enable TrueType in the browser. 5) Get some TrueType fonts. 6) Tell Mozilla/Netscape where the TrueType fonts are. 7) Select TrueType fonts. 1) Get a Mozilla/Netscape build with TrueType support compiled in. Available on many platforms after Feb 28, 2002. To check if the build has TrueType support compiled in set the environment variable NS_FONT_DEBUG to 400 and run the browser. If it reports "freetype not compiled in" then this build does not have TrueType support built in and cannot display TrueType fonts. 2) Check you have the FreeType2 library Typically named "/usr/local/lib/libfreetype.so.6". See "Checking for the FreeType library". 3) Check that the FreeType2 library is on the standard lib path Check that the directory where the FreeType library is installed is in the standard library paths (eg: on Redhat check that the directory is in /etc/ld.so.conf) or the directory in in your environment variable LD_LIBRARY_PATH 4) Enable TrueType in the Browser Make sure the pref pref("font.FreeType2.enable", true); is set to 'true'. The pref is in the unix.js file: "/mozilla/defaults/pref/unix.js" or "/netscape/defaults/pref/unix.js". 5) Get some TrueType fonts 6) Tell Mozilla/Netscape where the TrueType fonts are Set a pref for each directory with TrueType fonts; ie: if the fonts are in "/usr/local/share/fonts/TrueType" and "/home/user1/fonts" then add prefs to unix.js: pref("font.directory.truetype.1", "/usr/local/share/fonts/TrueType"); pref("font.directory.truetype.2", "/home/user1/fonts"); Be sure to use different numbers in the pref name: "font.directory.truetype." 7) Note that the very first time Mozilla/Netscape sees a new TrueType font(s) it will scan the font(s). This one time activity may take several minutes depending on the number and size of the font(s). 8) Select TrueType fonts Select the font prefs dialog: Edit->Preferences...->Appearance->Fonts Set the language. Select fonts that start with an uppercase letter. Click "OK". Checking for the FreeType library Typically named libfreetype.so.6 Redhat 7.2 comes with it. Check for libfreetype Typically in /usr/local/lib Use the 'locate' or 'find' command locate libfreetype find / -name 'libfreetype.*' -print If the name is not libfreetype.so.6 (eg: on HP-UX it is named libfreetype.sl) then change the pref pref("font.freetype2.shared-library", "libfreetype.so.6"); as appropriate. If it is not on your system (eg: Redhat 6.2) you will need to get the source and build/install it. See 'Building/Installing FreeType2'. Building/Installing FreeType2 http://www.freetype.org/ http://sourceforge.net/project/showfiles.php?group_id=3157 http://prdownloads.sourceforge.net/freetype/freetype-2.0.4.tar.gz Get the FreeType 2.0.4 tar/gz Unzip/untar cd in to the dir make # configure for youf system make # build FreeType2 su root make install # install

<< Предыдущая ИНДЕКС Поиск в статьях src Установить закладку Перейти на закладку Следующая >>

 Добавить комментарий
Имя:
E-Mail:
Заголовок:
Текст:




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру