Am 08.11.2012 um 17:19 schrieb Patrick <kpa_i...@yahoo.fr>:

> Dear all,
> 
> I have to use a special font (DIN) for my document. This font have a really 
> limited number of caracters.
> 
> Previously I was using ConTeXt MKII with no problems. After migrating to 
> ConTeXt MKiV the math formula and list doesn’t work due to the font. It's 
> like the charset used for the formula and the list bullet are not available. 
> I have not this issue with the same font with ConTeXt MKII.
> 
> The code used to load the font is not the same for the two version. With MKIV 
> I use the simplefonts module, with MKII I use typescript. Both code are 
> available below.
> 
> Do you have any idea how could I use DIN font with MKIV without breaking math 
> formula ?
> 
> Thanks in advance for any hint
> 
> Patrick
> 
> 
> 
> This is the code I use with MKIV:
> 
> \usemodule[simplefonts]
> \definefontfeature[fakeitalic][default][slant=.25]
> \setsansfont[din]

Can you test the font with a complete minimal example like this (you can 
replace the Ubuntu font with DIN).

\usemodule[simplefonts]

\setsansfont[Ubuntu]

\setupbodyfont[ss]

\starttext

\input ward

\startformula
c^2 = a^2 + b^2
\stopformula

\startitemize
\startitem Item 1 \stopitem
\startitem Item 2 \stopitem
\startitem Item 3 \stopitem
\stopitemize

\stoptext

> This is the code I use with MKII:
> 
> 
> % Load the DIN font and set the typescript
> \loadmapfile [texnansi-s-din.map]
> 
> \starttypescript [map] [gentium] [ec,texnansi,8r,t5,t2a,t2b,qx]
>    \loadmapfile [\typescriptthree-s-din.map]
> \stoptypescript
> 
> \starttypescript [serif] [DIN] [texnansi]
> 
>  \definefontsynonym[DIN-Black][texnansi-DIN-Black0][encoding=texnansi]
>  \definefontsynonym[DIN-Bold][texnansi-DIN-Bold0][encoding=texnansi]
>  \definefontsynonym[DIN-Light][texnansi-DIN-Light0][encoding=texnansi]
>  \definefontsynonym[DIN-Medium][texnansi-DIN-Medium0][encoding=texnansi]
>  \definefontsynonym[DIN-Regular][texnansi-DIN-Regular0][encoding=texnansi]
> \stoptypescript


Are “DIN-Black0”, “DIN-Bold0” etc. the file names for the font, in this case 
simplefonts
isn’t able to find them because the search pattern don’t look for such names.

Wolfgang
___________________________________________________________________________________
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