Date: Mon, 12 Apr 2010 13:16:14 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: cups 1.3.9 (from ports) && Cyrillic fonts Message-ID: <20100412111614.GA4742@current.Sisis.de>
next in thread | raw e-mail | index | archive | help
--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello, I want to print via CUPS (from the ports 1.3.9) in FreeBSD 8-CURRENT UTF-8 text files with Cyrillic (and other) chars; see the very small attached file; the conversion of the UTF-8 textfile is done by CUPS's texttops and someone can simulate this without wasting paper with this command: $ CHARSET=utf-8 /usr/local/libexec/cups/filter/texttops 1 rleigh myfile 1 "" < testfile.utf8 > ps and check the resulting PostScript file with a viewer, for example Ghostview. The mapping between the Unicode codepoints and fonts for CUPS is done in /usr/local/share/cups/charsets/utf-8 which has for Cyrillic chars U-0400...U+04FF: 0400 04FF ltor single Courier Courier-Bold Courier-Italic Courier-Bold-Italic Using the attached test file all is printed fine, all but the Cyrillic line. If you run this through Ghostview it says (it seems for the Cyrillic chars): $ gs ps GPL Ghostscript 8.63 (2008-08-01) Copyright (C) 2008 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Substituting .notdef for afii10035 in the font Courier Substituting .notdef for afii10077 in the font Courier Substituting .notdef for afii10085 in the font Courier ... On a real printer all is printed fine, all but the the Cyrillic line. Any idea what is missing? Is this a problem with CUPS or with the viewer? Thanks in advance matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@unixarea.de> - w http://www.unixarea.de/ Ya basta! Tropas de OTAN, fuera de Afghanistan! There's an end of it! NATO troups out of Afghanistan! Schluss jetzt endlich! NATO raus aus Afghanistan! --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="testfile.utf8" Content-Transfer-Encoding: 8bit Deutsche Umlaute: äöü AÖÜ ß Spanische tilde Zeichen: áéíñóúü ÁÉÍÑÓÚÜ ¿? ¡! Russische Zeichen: Случайно заметил, какая штука появляется на мгновение при компилляции Grieschiche Zeichen: Το μεγαλόσταυρο του Αποστόλου --Nq2Wo0NMKNjxTN9z--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100412111614.GA4742>