ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Antoine Cailliau <antoinecailliau@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to define a new font style using \definefontstyle?
Date: Mon, 30 Jan 2017 09:12:20 +0100	[thread overview]
Message-ID: <CAKX8Tc67j=7ruxHCaz-1wLcQQsJJCYJwAaayJpWiOQ4As-EipQ@mail.gmail.com> (raw)
In-Reply-To: <CAKX8Tc4KwjS0csqB9oR+OUhK89Ld4gt7aaPa1S12pfByj8OgUQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --]

No one? Is there a documentation somewhere or an example I could refer to?

Thanks in advance,

Antoine

On 23 January 2017 at 12:48, Antoine Cailliau <antoinecailliau@gmail.com>
wrote:

> Hi,
>
> I'm trying to declare a new font style. I declare it with \definefontstyle
> [sx] [sx] but the compilation fails when I use \sx in my document.
>
> I found an older message from 2009 similar to my issue but with public
> solution. May be some private response from Hans Hagen is missing? (
> https://mailman.ntg.nl/pipermail/ntg-context/2009/043067.html)
>
> Here is a minimal example:
>
> \definefontstyle [sx] [sx]
> \definetypeface  [source] [sx] [semiextended] [myriadpro] [optical]
>
> \starttypescript [semiextended] [optical] [size]
>   \definebodyfont [11pt] [sx] [tf=SansSemiExtended sa 1]
> \stoptypescript
>
> \starttypescript [semiextended] [myriadpro]
> \definefontsynonym [SansSemiExtended] [file:MyriadPro-SemiExt.otf]
> [features=default]
> \stoptypescript
>
> \starttext
>
> {\sx ABCDEFGHIJKLM\par
> NOPQRSTUVWXYZ\par
> abcdefghijklm\par
> nopqrstuvwxyz\par
> 1234567890}
>
> \stoptext
>
> Thanks for your help,
>
> Antoine C.
>
>

[-- Attachment #1.2: Type: text/html, Size: 2039 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-01-30  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23 11:48 Antoine Cailliau
2017-01-30  8:12 ` Antoine Cailliau [this message]
2017-01-30 18:43   ` Hans Hagen
2017-01-31  8:39     ` Antoine Cailliau

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='CAKX8Tc67j=7ruxHCaz-1wLcQQsJJCYJwAaayJpWiOQ4As-EipQ@mail.gmail.com' \
    --to=antoinecailliau@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).