Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example. The content of pdf-file: test - тест. test - . Example: \definefont [Story][StoryRegular.otf] \definefont [LozenCondensed][lozencondensed.ttf] \starttext \Story test - тест. \LozenCondensed test - тест. \stoptext
On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example. The content of pdf-file: test - тест. test - .
Example: \definefont [Story][StoryRegular.otf] \definefont [LozenCondensed][lozencondensed.ttf]
\starttext \Story test - тест.
\LozenCondensed test - тест. \stoptext
maybe the font has no cyrillic ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 07.10.2013 um 13:18 schrieb Hans Hagen
On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example. The content of pdf-file: test - тест. test - .
Example: \definefont [Story][StoryRegular.otf] \definefont [LozenCondensed][lozencondensed.ttf]
\starttext \Story test - тест.
\LozenCondensed test - тест. \stoptext
maybe the font has no cyrillic
It has but it uses a custom encoding and not unicode. \starttext \startfont[file:lozencondensed.ttf] \dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space} \stopfont \stoptext Wolfgang
On 10/7/2013 1:24 PM, Wolfgang Schuster wrote:
Am 07.10.2013 um 13:18 schrieb Hans Hagen
: On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example. The content of pdf-file: test - тест. test - .
Example: \definefont [Story][StoryRegular.otf] \definefont [LozenCondensed][lozencondensed.ttf]
\starttext \Story test - тест.
\LozenCondensed test - тест. \stoptext
maybe the font has no cyrillic
It has but it uses a custom encoding and not unicode.
\starttext
\startfont[file:lozencondensed.ttf] \dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space} \stopfont
\stoptext
so someone has to make a file like dingbats.lfg ... or, as the font is not that pretty anyway, use another font instead Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
07.10.2013, 17:39, "Hans Hagen"
On 10/7/2013 1:24 PM, Wolfgang Schuster wrote:
Am 07.10.2013 um 13:18 schrieb Hans Hagen
: On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example. The content of pdf-file: test - тест. test - .
Example: \definefont [Story][StoryRegular.otf] \definefont [LozenCondensed][lozencondensed.ttf]
\starttext \Story test - тест.
\LozenCondensed test - тест. \stoptext maybe the font has no cyrillic It has but it uses a custom encoding and not unicode.
\starttext
\startfont[file:lozencondensed.ttf] \dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space} \stopfont
\stoptext so someone has to make a file like dingbats.lfg ... or, as the font is not that pretty anyway, use another font instead
Hans
Hans, Wolfgang thank you very much for reply. Unfortunately I have to use this file to technical documentation, so I will try to find a work around. As I see, this font uses the encoding win-1251: http://en.wikipedia.org/wiki/Windows-1251 There are several mismatched characters, but they don't belong to Russian language. Please help me make the correctly contents of lgf-file. As Hans has advised I took the dingbats.lfg as a basis. How, for example remap symbol 192 from font to unicode 0x0410? lozencondenced.lgf: return { name = "lozencondenced", version = "1.00", comment = "Goodies that complement dingbats (funny names).", author = "Hans Hagen", copyright = "ConTeXt development team", remapping = { tounicode = true, unicodes = { ?? = ??, . . . }, }, } The part of code that I use to define the font in my project (In the original, there is also defined Lozen-Bold, Lozen-Italic and Lozen-Bold-Italic): \starttypescript [sans] [lozen] \definefontsynonym [Lozen-Roman] [name:lozencondensed] [features=default] \stoptypescript \starttypescript [sans] [lozen] [name] \definefontsynonym [Sans] [Lozen-Roman] [features=default] \stoptypescript \starttypescript [Lozen] \definetypeface [Lozen] [ss] [sans] [lozen] [default] \stoptypescript Where the lozencondenced.lgf should be located and how should I use it to define a font? Dmitry
On 10/7/2013 7:10 PM, Dmitry Tokarev wrote:
lozencondenced.lgf: return { name = "lozencondenced", version = "1.00", comment = "Goodies that complement dingbats (funny names).", author = "Hans Hagen", copyright = "ConTeXt development team", remapping = { tounicode = true, unicodes = { ?? = ??, . . . }, }, }
it's a name = unicode list; another option is to load the font in fontforge and see if you can save it as proper unicode font Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
08.10.2013, 00:17, "Hans Hagen"
On 10/7/2013 7:10 PM, Dmitry Tokarev wrote:
lozencondenced.lgf: return { name = "lozencondenced", version = "1.00", comment = "Goodies that complement dingbats (funny names).", author = "Hans Hagen", copyright = "ConTeXt development team", remapping = { tounicode = true, unicodes = { ?? = ??, . . . }, }, } it's a
name = unicode
list; another option is to load the font in fontforge and see if you can save it as proper unicode font
Hans
Thanks Hans, the fontforge was the easiest way. I did the following: 1. File->Open 2. Encoding->Force Encoding->ISO 10646-1 (Unicode, Full) 3. File->Generate Fonts... Now all the Cyrillic characters are present in generated pdf-file. Dmitry
On 10/8/2013 7:23 PM, Dmitry Tokarev wrote:
Thanks Hans, the fontforge was the easiest way. I did the following: 1. File->Open 2. Encoding->Force Encoding->ISO 10646-1 (Unicode, Full) 3. File->Generate Fonts...
Now all the Cyrillic characters are present in generated pdf-file.
ok, maybe make a note about it on one of the font pages of the wiki Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Dmitry Tokarev
-
Hans Hagen
-
Wolfgang Schuster