07.10.2013, 17:39, "Hans Hagen" <pra...@wxs.nl>:

>  On 10/7/2013 1:24 PM, Wolfgang Schuster wrote:
>>   Am 07.10.2013 um 13:18 schrieb Hans Hagen <pra...@wxs.nl>:
>>>   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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to