ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Fonts problems with ConTeXt MKIV (LuaTeX)
@ 2012-11-08 16:19 Patrick
  2012-11-09  8:17 ` Wolfgang Schuster
  2012-11-09  8:37 ` Patrick
  0 siblings, 2 replies; 12+ messages in thread
From: Patrick @ 2012-11-08 16:19 UTC (permalink / raw)
  To: ntg-context

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]


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

\starttypescript [serif] [DIN] [name]
   \usetypescript[serif][fallback]
   \definefontsynonym [Serif]           	[DIN-Regular]
   \definefontsynonym [SerifItalic]     	[DIN-Light]
   \definefontsynonym [SerifSlanted]   	[DIN-Light]
   \definefontsynonym [SerifBold]     	[DIN-Bold]
\stoptypescript

\starttypescript [DIN]
   \definetypeface [MyDIN] [rm] [serif] [DIN] [default] [encoding=texnansi]
   \definetypeface [MyDIN] [ss] [sans]  [default] [default] 
[encoding=texnansi]
   \definetypeface [MyDIN] [tt] [mono]  [default] [default] 
[encoding=texnansi]
   \definetypeface [MyDIN] [mm] [math]  [default] [default] 
[encoding=texnansi]
\stoptypescript
\usetypescript[DIN]

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-11-09 16:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-08 16:19 [***SPAM***] Fonts problems with ConTeXt MKIV (LuaTeX) Patrick
2012-11-09  8:17 ` Wolfgang Schuster
2012-11-09  8:37 ` Patrick
2012-11-09  8:42   ` Wolfgang Schuster
2012-11-09  9:47     ` Patrick
2012-11-09 10:06       ` Wolfgang Schuster
2012-11-09 10:42         ` Patrick
2012-11-09 10:56           ` luigi scarso
2012-11-09 11:16             ` Patrick
2012-11-09 11:27               ` luigi scarso
2012-11-09 13:23                 ` Patrick
2012-11-09 16:12                   ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).