* Abstracting styles
@ 2019-11-26 19:00 Juraj Fiala
2019-11-27 9:08 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Juraj Fiala @ 2019-11-26 19:00 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 730 bytes --]
Hi,
I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the way. Essentially what I currently want to do is to emulate paragraph styles found in other software, e.g. Scribus. After several hours of research all I have in my head is a complete mess of conflicting approaches, so I’d like to get some sane present-day advice. :-)
Say I wanted to achieve this (as a rough example, the point is mixing weights and OpenType features in different contexts):
Heading 1: Source Serif Semibold, smcp=yes, 12% letter-spacing
Heading 2: Source Serif Semibold
Emphasis: Source Serif Regular, smcp=yes, 8% letter-spacing
What is the most straightforward way should I load the fonts and set the ‘styles’?
Thanks!
[-- Attachment #1.2: Type: text/html, Size: 913 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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: Abstracting styles
2019-11-26 19:00 Abstracting styles Juraj Fiala
@ 2019-11-27 9:08 ` Hans Hagen
2019-11-27 13:52 ` Juraj Fiala
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2019-11-27 9:08 UTC (permalink / raw)
To: Juraj Fiala, mailing list for ConTeXt users
On 11/26/2019 8:00 PM, Juraj Fiala wrote:
> Hi,
>
> I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the
> way. Essentially what I currently want to do is to emulate paragraph
> styles found in other software, e.g. Scribus. After several hours of
> research all I have in my head is a complete mess of conflicting
> approaches, so I’d like to get some sane present-day advice. :-)
>
> Say I wanted to achieve this (as a rough example, the point is mixing
> weights and OpenType features in different contexts):
>
> Heading 1: Source Serif Semibold, smcp=yes, 12% letter-spacing
> Heading 2: Source Serif Semibold
> Emphasis: Source Serif Regular, smcp=yes, 8% letter-spacing
>
> What is the most straightforward way should I load the fonts and set the
> ‘styles’?
Something:
\definefontfamily[mainface][serif][Source Serif Pro]
\setupbodyfont[mainface]
\definecharacterkerning [LittleMoreA] [factor=0.12]
\definecharacterkerning [LittleMoreB] [factor=0.08]
\setuphead
[chapter]
[distance=2em,
style=\tfd,
textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}]
\definehighlight
[emphasis]
[style={\setcharacterkerning[LittleMoreA]}]
\starttext
\startchapter[title=Something Small]
test \emphasis {test} test
\stopchapter
but the font has no smallcaps
Hans
-----------------------------------------------------------------
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: Abstracting styles
2019-11-27 9:08 ` Hans Hagen
@ 2019-11-27 13:52 ` Juraj Fiala
2019-11-28 13:50 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Juraj Fiala @ 2019-11-27 13:52 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
Hi, thanks for the reply!
On Wednesday 27. November 2019 10:08, Hans Hagen <j.hagen@xs4all.nl> wrote:
> \setuphead
> [chapter]
> [distance=2em,
> style=\tfd,
> textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}]
This doesn’t use Semibold however. Do I understand correctly that I need to make a Typescript for that to work?
> but the font has no smallcaps
Sure it does, and very nice ones too. ^_^
Anyway, I _think_ I’m slowly finding my way around.
Cheers.
Juraj
___________________________________________________________________________________
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: Abstracting styles
2019-11-27 13:52 ` Juraj Fiala
@ 2019-11-28 13:50 ` Pablo Rodriguez
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2019-11-28 13:50 UTC (permalink / raw)
To: ntg-context
On 11/27/19 2:52 PM, Juraj Fiala wrote:
> Hi, thanks for the reply!
>
> On Wednesday 27. November 2019 10:08, Hans Hagen <j.hagen@xs4all.nl> wrote:
>
>> \setuphead
>> [chapter]
>> [distance=2em,
>> style=\tfd,
>> textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}]
>
> This doesn’t use Semibold however. Do I understand correctly that I
> need to make a Typescript for that to work?
Hi Juraj,
you don’t need to make a typescript.
Just add "[bf=style:semibold]" to the "\definefontfamily" command and
invoke it with "style=\bfd".
Of course, the first option replaces bold wit the semibold font.
Just in case it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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:[~2019-11-28 13:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 19:00 Abstracting styles Juraj Fiala
2019-11-27 9:08 ` Hans Hagen
2019-11-27 13:52 ` Juraj Fiala
2019-11-28 13:50 ` Pablo Rodriguez
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).