* How to define a new font style using \definefontstyle?
@ 2017-01-23 11:48 Antoine Cailliau
2017-01-30 8:12 ` Antoine Cailliau
0 siblings, 1 reply; 4+ messages in thread
From: Antoine Cailliau @ 2017-01-23 11:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 893 bytes --]
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: 1452 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to define a new font style using \definefontstyle?
2017-01-23 11:48 How to define a new font style using \definefontstyle? Antoine Cailliau
@ 2017-01-30 8:12 ` Antoine Cailliau
2017-01-30 18:43 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Antoine Cailliau @ 2017-01-30 8:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to define a new font style using \definefontstyle?
2017-01-30 8:12 ` Antoine Cailliau
@ 2017-01-30 18:43 ` Hans Hagen
2017-01-31 8:39 ` Antoine Cailliau
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2017-01-30 18:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 1/30/2017 9:12 AM, Antoine Cailliau wrote:
> 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
> <mailto: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.
easier:
\starttypescript [sans] [myriadpro]
% \definefontsynonym [SansSemiExtended]
[file:MyriadPro-SemiExt.otf][features=default]
\definefontsynonym [Sans] [name:dejavusans]
[features=default]
\definefontsynonym [SansBold] [name:dejavusansbold]
[features=default]
\definefontsynonym [SansItalic] [name:dejavusansitalic]
[features=default]
\definefontsynonym [SansBoldItalic]
[name:dejavusansbolditalic][features=default]
\stoptypescript
\definetypeface [source] [ss] [sans] [myriadpro]
\definetypeface [source] [mm] [math] [modern]
\setupbodyfont[pagella]
\starttext
{\source\ss ABCDEFGHIJKLM\par
NOPQRSTUVWXYZ\par
abcdefghijklm\par
nopqrstuvwxyz\par
1234567890}
\stoptext
> 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
> <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.
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to define a new font style using \definefontstyle?
2017-01-30 18:43 ` Hans Hagen
@ 2017-01-31 8:39 ` Antoine Cailliau
0 siblings, 0 replies; 4+ messages in thread
From: Antoine Cailliau @ 2017-01-31 8:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 4131 bytes --]
I'm not sure I understand. Myriad Pro has normal and semi-extended
versions.
Do you suggest to have different typefaces for normal and semi-extended
version ? (Which makes no sense for roman then).
I'd like to use both normal and semi-extended versions, both with their
bold, italic, etc. styles. That why I would have like to create a new
font-style.
Thanks in advance for your answer,
Antoine
On 30 January 2017 at 19:43, Hans Hagen <pragma@wxs.nl> wrote:
> On 1/30/2017 9:12 AM, Antoine Cailliau wrote:
>
>> 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
>> <mailto: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.
>>
>
>
> easier:
>
> \starttypescript [sans] [myriadpro]
> % \definefontsynonym [SansSemiExtended] [file:MyriadPro-SemiExt.otf][f
> eatures=default]
> \definefontsynonym [Sans] [name:dejavusans]
> [features=default]
> \definefontsynonym [SansBold] [name:dejavusansbold]
> [features=default]
> \definefontsynonym [SansItalic] [name:dejavusansitalic]
> [features=default]
> \definefontsynonym [SansBoldItalic] [name:dejavusansbolditalic][fe
> atures=default]
> \stoptypescript
>
> \definetypeface [source] [ss] [sans] [myriadpro]
> \definetypeface [source] [mm] [math] [modern]
>
> \setupbodyfont[pagella]
>
> \starttext
>
> {\source\ss ABCDEFGHIJKLM\par
> NOPQRSTUVWXYZ\par
> abcdefghijklm\par
> nopqrstuvwxyz\par
> 1234567890}
>
> \stoptext
>
> 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
>> <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.
>>
>>
>>
>>
>> ____________________________________________________________
>> _______________________
>> 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/list
>> info/ntg-context
>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ____________________________________________________________
>> _______________________
>>
>>
>
> --
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ____________________________________________________________
> _______________________
> 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/list
> info/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
[-- Attachment #1.2: Type: text/html, Size: 6947 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-31 8:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 11:48 How to define a new font style using \definefontstyle? Antoine Cailliau
2017-01-30 8:12 ` Antoine Cailliau
2017-01-30 18:43 ` Hans Hagen
2017-01-31 8:39 ` Antoine Cailliau
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).