ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [***SPAM***] Fonts problems with ConTeXt MKIV (LuaTeX)
Date: Fri, 9 Nov 2012 09:17:12 +0100	[thread overview]
Message-ID: <66CC6655-7D98-4698-89E5-35D853DC3070@gmail.com> (raw)
In-Reply-To: <509BDBA1.7060005@yahoo.fr>


Am 08.11.2012 um 17:19 schrieb Patrick <kpa_info@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	other threads:[~2012-11-09  8:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 16:19 Patrick
2012-11-09  8:17 ` Wolfgang Schuster [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66CC6655-7D98-4698-89E5-35D853DC3070@gmail.com \
    --to=wolfgang.schuster@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).