* Problems with setfirstline
@ 2017-10-18 17:19 Rik Kabel
0 siblings, 0 replies; only message in thread
From: Rik Kabel @ 2017-10-18 17:19 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1609 bytes --]
Setfirstline does not seem to be working well with most fonts, perhaps
all. The example below shows the issue.
\define \Fonts
{libertinus,ebgaramond,termes,antykwa,
cambria,minion,bonum,heros,pagella,iwona}
\define[1] \Setupbodyfont{\setupbodyfont[#1,11pt]}
\define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer}
\setupfirstline [alternative=line,
style=\setfontfeature{smallcaps}]
\setupinitial [location=text,n=2,color=darkred]
\setuphead [chapter][
after={\blank[big]\setfirstline\setinitial}]
\setuphead [section][continue=yes,
after=\setfirstline]
\startbuffer
\startchapter[title=Initial and first line: \Word{\fontclass}]
\startparagraph
\input darwin
\stopparagraph
\startsection[title=First line only]
\startparagraph
\input montgomery
\stopparagraph
\startparagraph
\input sapolsky
\stopparagraph
\stopsection
\stopchapter
\stopbuffer
\expandafter\processcommalist\expandafter[\Fonts]\Setupbodyfont
\starttext
\expandafter\processcommalist\expandafter[\Fonts]\DisplayExample
\stoptext
--
Rik
[-- Attachment #1.2.1: Type: text/html, Size: 2518 bytes --]
[-- Attachment #1.2.2: fkfngiioodikmink.png --]
[-- Type: image/png, Size: 10915 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] only message in thread
only message in thread, other threads:[~2017-10-18 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-18 17:19 Problems with setfirstline Rik Kabel
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).