ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: SimpleFonts: no italic and bold
Date: Mon, 17 Oct 2011 16:49:52 +0200	[thread overview]
Message-ID: <F7556298-FAE9-45FE-AB8B-1E1CF4CDF433@googlemail.com> (raw)
In-Reply-To: <4E9C27A3.9060802@gmx.de>


Am 17.10.2011 um 15:03 schrieb Andreas Schneider:

> On 17.10.2011 14:46, Wolfgang Schuster wrote:
>>> Ah, that is what I was looking for. Bold works now! Thank you! :-)
>>> 
>>> There's still one problem though: italic doesn't work.
>> 
>> Is there a file for the italic style?
>> 
>>> I guess the font doesn't provide that feature by itself, but can it be emulated/enabled?
>> 
>> ConTeXt can fake the slanted and bold style but they are not the same as a real italic and bold font.
>> 
> 
> AFAICS there is no italic style. Only regular, bold and semi-bold. What is needed to get simplefonts to fake italic (and slanted for that matter)?


\usemodule[simplefonts]

\definefontfeature[fakeitalic][default][slant=.25] % for fake bold use “stretch=<number>”

\setmainfont
  [telegrotesk]
  [regularfont=* nor,
   italicfont=* nor,
   boldfont=* fett,
   bolditalicfont=* fett,
   italicfeatures=fakeitalic, % just the name of a fontfeature
   bolditalicfeatures=fakeitalic]

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:[~2011-10-17 14:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 11:38 Andreas Schneider
2011-10-17 12:00 ` Wolfgang Schuster
2011-10-17 12:36   ` Andreas Schneider
2011-10-17 12:46     ` Wolfgang Schuster
2011-10-17 13:03       ` Andreas Schneider
2011-10-17 14:49         ` Wolfgang Schuster [this message]
2011-10-18  6:41           ` Andreas Schneider

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=F7556298-FAE9-45FE-AB8B-1E1CF4CDF433@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).