ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using fontfeatures ...
@ 2008-07-16 12:48 Willi Egger
  2008-07-16 12:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2008-07-16 12:48 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

Hi,

I am trying to use fontfeatures contained in my new otf-font Seravek.

I am getting Seravek in the file but no way to activate the oldstyle  
figures and the small caps. :-(

Can someone give m a clue?

Willi


I got until now the following typescript:


% \definefontfeature
% 	[OldstyleFigures]
% 	 
[language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=yes]
	
\starttypescript [sans] [seravek]
    \definefontsynonym [SeravekBasic-Roman]      [file:SeravekBasic- 
Regular]      [features=default]
    \definefontsynonym [SeravekBasic-Bold]       [file:SeravekBasic- 
Bold]         [features=default]
    \definefontsynonym [SeravekBasic-Italic]     [file:SeravekBasic- 
RegularItalic][features=default]
    \definefontsynonym [SeravekBasic-Bold-Italic][file:SeravekBasic- 
BoldItalic]   [features=default]
\stoptypescript

\starttypescript [sans] [seravek] [name]
    \definefontsynonym [Sans]              [SeravekBasic-Roman]       
[features=default]
    \definefontsynonym [SansItalic]        [SeravekBasic-Italic]      
[features=default]
    \definefontsynonym [SansBold]          [SeravekBasic-Bold]        
[features=default]
    \definefontsynonym [SansBoldItalic]    [SeravekBasic-Bold-Italic] 
[features=default]
    \definefontsynonym [SansRegularCaps]   [Sans]                     
[features=smallcaps]
    % \definefontsynonym [SansBoldCaps]       
[SansBold]                [features=smallcaps]
    % \definefontsynonym [SansItalicCaps]     
[SansItalic]              [features=smallcaps]
    % \definefontsynonym [SansBoldItalicCaps] 
[SansBoldItalic]          [features=smallcaps]
\stoptypescript

\starttypescript [Seravek]
    \definetypeface [Seravek] [ss] [sans][seravek][default]
    \definetypeface [Seravek] [mm] [math] [modern][default]
\stoptypescript


I tried this with the following test-code:

\setupoutput[pdftex]
\enableregime[utf]

% \definefontfeature
% 	[OldstyleFigures]
%  	 
[language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=yes]
\definefontfeature[default] 
[method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes]

\usetypescriptfile[seravek]
\usetypescript[Seravek]
\setupbodyfont[Seravek,12pt]


% \def\sc{\setfontfeature{smcp}}
% \def\os{\setfontfeature{onum}}

\starttext
Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9
\blank
{\sc Hello World!}
\blank
{\bf Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
\blank
{\it Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
\blank
\bi Hello World {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9!
\stoptext
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Using fontfeatures ...
  2008-07-16 12:48 Using fontfeatures Willi Egger
@ 2008-07-16 12:56 ` Wolfgang Schuster
  2008-07-16 13:29   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-07-16 12:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jul 16, 2008 at 2:48 PM, Willi Egger <w.egger@boede.nl> wrote:
> Hi,
>
> I am trying to use fontfeatures contained in my new otf-font Seravek.
>
> I am getting Seravek in the file but no way to activate the oldstyle
> figures and the small caps. :-(
>
> Can someone give m a clue?
>
> Willi
>
>
> I got until now the following typescript:
>
>
> % \definefontfeature
> %       [OldstyleFigures]
> %
> [language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=yes]
>
> \starttypescript [sans] [seravek]
>    \definefontsynonym [SeravekBasic-Roman]      [file:SeravekBasic-
> Regular]      [features=default]
>    \definefontsynonym [SeravekBasic-Bold]       [file:SeravekBasic-
> Bold]         [features=default]
>    \definefontsynonym [SeravekBasic-Italic]     [file:SeravekBasic-
> RegularItalic][features=default]
>    \definefontsynonym [SeravekBasic-Bold-Italic][file:SeravekBasic-
> BoldItalic]   [features=default]
> \stoptypescript
>
> \starttypescript [sans] [seravek] [name]
>    \definefontsynonym [Sans]              [SeravekBasic-Roman]
> [features=default]
>    \definefontsynonym [SansItalic]        [SeravekBasic-Italic]
> [features=default]
>    \definefontsynonym [SansBold]          [SeravekBasic-Bold]
> [features=default]
>    \definefontsynonym [SansBoldItalic]    [SeravekBasic-Bold-Italic]
> [features=default]
>    \definefontsynonym [SansRegularCaps]   [Sans]
> [features=smallcaps]
>    % \definefontsynonym [SansBoldCaps]
> [SansBold]                [features=smallcaps]
>    % \definefontsynonym [SansItalicCaps]
> [SansItalic]              [features=smallcaps]
>    % \definefontsynonym [SansBoldItalicCaps]
> [SansBoldItalic]          [features=smallcaps]
> \stoptypescript
>
> \starttypescript [Seravek]
>    \definetypeface [Seravek] [ss] [sans][seravek][default]
>    \definetypeface [Seravek] [mm] [math] [modern][default]
> \stoptypescript
>
>
> I tried this with the following test-code:
>
> \setupoutput[pdftex]
> \enableregime[utf]
>
> % \definefontfeature
> %       [OldstyleFigures]
> %
> [language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=yes]
> \definefontfeature[default]
> [method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes]
>
> \usetypescriptfile[seravek]
> \usetypescript[Seravek]
> \setupbodyfont[Seravek,12pt]
>
>
> % \def\sc{\setfontfeature{smcp}}
> % \def\os{\setfontfeature{onum}}

\def\sc{\setfontfeature{smallcaps}}
\def\os{\setfontfeature{oldstyle}}

or

\def\sc{\setfontfeature{smallcaps}}
\def\os{\setfontfeature{OldstyleFigures}}

> \starttext
> Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9
> \blank
> {\sc Hello World!}
> \blank
> {\bf Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
> \blank
> {\it Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
> \blank
> \bi Hello World {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9!
> \stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Using fontfeatures ...
  2008-07-16 12:56 ` Wolfgang Schuster
@ 2008-07-16 13:29   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2008-07-16 13:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

Thanks for your reply. I tried your suggestions, but unfortunately  
none of the versions gives oldstyle nor small caps.  ;-(

Kind regards

Willi
On Jul 16, 2008, at 2:56 PM, Wolfgang Schuster wrote:

> On Wed, Jul 16, 2008 at 2:48 PM, Willi Egger <w.egger@boede.nl> wrote:
>> Hi,
>>
>> I am trying to use fontfeatures contained in my new otf-font Seravek.
>>
>> I am getting Seravek in the file but no way to activate the oldstyle
>> figures and the small caps. :-(
>>
>> Can someone give m a clue?
>>
>> Willi
>>
>>
>> I got until now the following typescript:
>>
>>
>> % \definefontfeature
>> %       [OldstyleFigures]
>> %
>> [language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=ye 
>> s]
>>
>> \starttypescript [sans] [seravek]
>>    \definefontsynonym [SeravekBasic-Roman]      [file:SeravekBasic-
>> Regular]      [features=default]
>>    \definefontsynonym [SeravekBasic-Bold]       [file:SeravekBasic-
>> Bold]         [features=default]
>>    \definefontsynonym [SeravekBasic-Italic]     [file:SeravekBasic-
>> RegularItalic][features=default]
>>    \definefontsynonym [SeravekBasic-Bold-Italic][file:SeravekBasic-
>> BoldItalic]   [features=default]
>> \stoptypescript
>>
>> \starttypescript [sans] [seravek] [name]
>>    \definefontsynonym [Sans]              [SeravekBasic-Roman]
>> [features=default]
>>    \definefontsynonym [SansItalic]        [SeravekBasic-Italic]
>> [features=default]
>>    \definefontsynonym [SansBold]          [SeravekBasic-Bold]
>> [features=default]
>>    \definefontsynonym [SansBoldItalic]    [SeravekBasic-Bold-Italic]
>> [features=default]
>>    \definefontsynonym [SansRegularCaps]   [Sans]
>> [features=smallcaps]
>>    % \definefontsynonym [SansBoldCaps]
>> [SansBold]                [features=smallcaps]
>>    % \definefontsynonym [SansItalicCaps]
>> [SansItalic]              [features=smallcaps]
>>    % \definefontsynonym [SansBoldItalicCaps]
>> [SansBoldItalic]          [features=smallcaps]
>> \stoptypescript
>>
>> \starttypescript [Seravek]
>>    \definetypeface [Seravek] [ss] [sans][seravek][default]
>>    \definetypeface [Seravek] [mm] [math] [modern][default]
>> \stoptypescript
>>
>>
>> I tried this with the following test-code:
>>
>> \setupoutput[pdftex]
>> \enableregime[utf]
>>
>> % \definefontfeature
>> %       [OldstyleFigures]
>> %
>> [language=nld,script=latn,mode=node,calt=no,clig=yes,rlig=yes,onum=ye 
>> s]
>> \definefontfeature[default]
>> [method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes]
>>
>> \usetypescriptfile[seravek]
>> \usetypescript[Seravek]
>> \setupbodyfont[Seravek,12pt]
>>
>>
>> % \def\sc{\setfontfeature{smcp}}
>> % \def\os{\setfontfeature{onum}}
>
> \def\sc{\setfontfeature{smallcaps}}
> \def\os{\setfontfeature{oldstyle}}
>
> or
>
> \def\sc{\setfontfeature{smallcaps}}
> \def\os{\setfontfeature{OldstyleFigures}}
>
>> \starttext
>> Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9
>> \blank
>> {\sc Hello World!}
>> \blank
>> {\bf Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
>> \blank
>> {\it Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9}
>> \blank
>> \bi Hello World {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9!
>> \stoptext
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ______________________________________________________________________ 
> _____________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-07-16 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 12:48 Using fontfeatures Willi Egger
2008-07-16 12:56 ` Wolfgang Schuster
2008-07-16 13:29   ` Willi Egger

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).