Printing (Печать из Firefox v 1.0)

Софт под Linux, разные программы, но только связанные с Linux

Модератор: /dev/random

olegSPb
Сообщения: 2

Printing

Сообщение olegSPb »

ОС ASPLinux v 10, ядро 2.6.9, принтер hp LaserJet 1300
Не удается распечатать из web-browser Firefox v 1.0 текст, вместо кирилицы (русского шрифта) отображается какая-то дрянь.
Такая же ерунда присходила и под Fedora Core 3.
:blink:
Спасибо сказали:
malor
Сообщения: 335

Re: Printing

Сообщение malor »

olegSPb писал(а):
23.03.2005 18:16
вместо кирилицы (русского шрифта) отображается какая-то дрянь.
Удалось решить проблему вывода кириллица на печать из браузера?
RedHat Enterprise 4 AS, HP LJ 1220, Mozilla
Спасибо сказали:
Аватара пользователя
sash-kan
Администратор
Сообщения: 13939
Статус: oel ngati kameie
ОС: GNU

Re: Printing

Сообщение sash-kan »

mallory
тема, действительно, популярна. поиск пробовали?
меня он привел на http://forum.mozilla-russia.org/viewtopic.php?id=6031
а также сюда: http://linux.opennet.ru/base/rus/mozilla_asp_print.txt.html
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
Спасибо сказали:
malor
Сообщения: 335

Re: Printing

Сообщение malor »

Поиск, действительно, пробовал. Рассмотрим материалы второй ссылки.
1.
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.
Насколько актуален алгоритм изложенный в этом и дальнейших (не стал полностью копировать) пунктах, учитывая, что упомянута дата 28 Feb 2002 ? У меня Mozilla/5.0(X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041215 Firefox/1.0 RedHat/1.0-12.EL4.
Почему в данном абзаце упоминается freetype?
Предположим, будет и в самом деле, выдано сообщение "freetype not compiled in", тогда что ? Какие следующие действия надо будет предпринимать?
2.Другая ссылка в той ссылке:
Printing
Linux/Unix: There are two different printing methods, direct PostScript and Xprint:
PostScript
The direct PostScript printing method comes in two flavours:
Normal mode
(Requires PostScript Level 2 printer and/or Ghostscript)
To use the PostScript module with non-Latin 1 languages, you have to set print.postscript.nativefont.x-cyrillic to a Cyrillic PostScript font on your system. (where x-cyrillic is for Cyrillic. For other scripts, use langGroups corresponding to them. For instance, zh-CN is for simplified Chinese and el is for Greek.) either typing about:config in the location bar or editing user.js. Because only one font can be designated for each script/language, the distinction between different font families, font-weight and style variants are lost in the print output.
Note that using print.postscript.nativefont.* assumes that the referenced fonts are built-in printer fonts or are downloadable/embeddable by an external filter like Ghostscript or WPrint.
FreeType2 mode
(Requires PostScript Level 3 printer and/or Ghostscript + FreeType2 shared library)
The default Linux binary now comes with freetype2 printing enabled. This dramatically enhances the printing result of documents with characters outside Latin-1 repertoire. (Cyrillic, Greek, CJK) In addition, the families and styles of fonts in the print output can more closely follow what you see on the screen rendering with this.method than is possible with the normal mode. For details, see Mozilla freetype project page. (Bugs 144668, 144669, 185935).
Note that PostScript files generated in this mode have to be filtered through Ghostscript even if you have a PS printer. If you use one of recent Linux distributions, there's not much, if any, to do, but on other flavors of Unix, you may find it useful to refer to http://www.cups.org and http://www.linuxprinting.org. Freetype2 printing now works in Xft-builds. (Bug 219060)
Xprint
(Requires Xprint server)
The default Unix/Linux binary comes with an alternate print module called Xprint which features CUPS, LPRng, MathML, TrueType fonts and PostScript/PDF/PCL output support.
For more information see http://xprint.mozdev.org for a thorough and very detailed guide and Mozilla.org's Xprint project pages.
Как это может помочь?
Спасибо сказали: