ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bold small caps
@ 2023-04-03  7:07 Peter Münster via ntg-context
  2023-04-03  9:34 ` Hans Hagen via ntg-context
  2023-04-03 21:33 ` Pablo Rodriguez via ntg-context
  0 siblings, 2 replies; 22+ messages in thread
From: Peter Münster via ntg-context @ 2023-04-03  7:07 UTC (permalink / raw)
  To: ConTeXt users; +Cc: Peter Münster

Hi,

I'm quite sure, that this worked some time ago with the standard font (LM):

\setff{smallcaps} Normal and \bf bold Small Caps.
(See also https://wiki.contextgarden.net/Bold_small_caps).

But it does not work with the latest ConTeXt version.

How could I get bold small caps with the latest version please?

TIA for any hints,
-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: bold small caps
  2023-04-03  7:07 bold small caps Peter Münster via ntg-context
@ 2023-04-03  9:34 ` Hans Hagen via ntg-context
  2023-04-03 21:33 ` Pablo Rodriguez via ntg-context
  1 sibling, 0 replies; 22+ messages in thread
From: Hans Hagen via ntg-context @ 2023-04-03  9:34 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 4/3/2023 9:07 AM, Peter Münster via ntg-context wrote:
> Hi,
> 
> I'm quite sure, that this worked some time ago with the standard font (LM):
> 
> \setff{smallcaps} Normal and \bf bold Small Caps.
> (See also https://wiki.contextgarden.net/Bold_small_caps).
> 
> But it does not work with the latest ConTeXt version.
> 
> How could I get bold small caps with the latest version please?
> 
> TIA for any hints,
best use a font that has smallcaps (otherwise use pseudocaps \cap{..} etc)

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: bold small caps
  2023-04-03  7:07 bold small caps Peter Münster via ntg-context
  2023-04-03  9:34 ` Hans Hagen via ntg-context
@ 2023-04-03 21:33 ` Pablo Rodriguez via ntg-context
  1 sibling, 0 replies; 22+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-04-03 21:33 UTC (permalink / raw)
  To: Peter Münster via ntg-context; +Cc: Pablo Rodriguez

On 4/3/23 09:07, Peter Münster via ntg-context wrote:
> Hi,
> 
> I'm quite sure, that this worked some time ago with the standard font (LM):

I had the same impression, Peter.

But LM fonts don‘t have the OT feature smcp:

  \setuppapersize[A8]
  \starttext
  \doloopoverlist{lm, pagella, termes, heros}
  {\setupbodyfont[\recursestring]
  \feature[+][smallcaps]
  smcp {\bf smcp}
  \feature[-][smallcaps]
  smcp {\bf smcp}}
  \stoptext

Just in case it makes it clearer,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: Bold small caps
  2014-05-23 16:46   ` Mojca Miklavec
@ 2014-05-23 16:52     ` Hans Hagen
  0 siblings, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2014-05-23 16:52 UTC (permalink / raw)
  To: ntg-context

On 5/23/2014 6:46 PM, Mojca Miklavec wrote:
> On Fri, May 23, 2014 at 6:11 PM, Wolfgang Schuster wrote:
>> Am 23.05.2014 um 17:55 schrieb Mojca Miklavec:
>>
>>> Would it make sense to fix this for the default LM setup as well?
>>
>> This need to be done by the font designers because Latin Modern
>> uses a separate font for the small capitals and the \setff (better use
>> \feature) has no effect in this case.
>
> For some reason I thought that they did both (supported all the small
> cap glyphs as well as released a separate font).
>
> But now I remembered that LM doesn't have bold small caps at all.
>
> But apart from fixing the font: would creating some kind of a "virtual
> font" with small cap glyphs taken from the other small cap font(s)
> (where they exist) be feasible/doable? From what I see there are four
> small caps fonts: regular and italic for both the roman and typewriter
> style. No bold and no sans.

I wonder what the gyre folks would answer if we ask for proper embedding 
of smallcaps ...

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Bold small caps
  2014-05-23 15:55 Bold " Mojca Miklavec
  2014-05-23 16:11 ` Wolfgang Schuster
@ 2014-05-23 16:49 ` Hans Hagen
  1 sibling, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2014-05-23 16:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/23/2014 5:55 PM, Mojca Miklavec wrote:
> Hi,
>
> I always forget how to use bold or italic small caps (I keep mixing
> addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be
> nice if simply
>      {\sc Normal and \bf Bold Small Caps} or
>      {\bf\sc Bold Small Caps}
> would work out-of-the-box.
>
> The first hit on the wiki was
>      http://wiki.contextgarden.net/Bold_small_caps
> which contained just the MKII example. I added a MKIV example
>      {\setff{smallcaps} Normal and \bf bold Small Caps.}
> but the problem is that this example only works with <put any font
> name here> except for the default Latin Modern setup.
>
> Would it make sense to fix this for the default LM setup as well?

I don't know .. I'd rather see lm shipped with the smallcaps in the 
regular font instead of separate.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Bold small caps
  2014-05-23 16:11 ` Wolfgang Schuster
@ 2014-05-23 16:46   ` Mojca Miklavec
  2014-05-23 16:52     ` Hans Hagen
  0 siblings, 1 reply; 22+ messages in thread
From: Mojca Miklavec @ 2014-05-23 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, May 23, 2014 at 6:11 PM, Wolfgang Schuster wrote:
> Am 23.05.2014 um 17:55 schrieb Mojca Miklavec:
>
>> Would it make sense to fix this for the default LM setup as well?
>
> This need to be done by the font designers because Latin Modern
> uses a separate font for the small capitals and the \setff (better use
> \feature) has no effect in this case.

For some reason I thought that they did both (supported all the small
cap glyphs as well as released a separate font).

But now I remembered that LM doesn't have bold small caps at all.

But apart from fixing the font: would creating some kind of a "virtual
font" with small cap glyphs taken from the other small cap font(s)
(where they exist) be feasible/doable? From what I see there are four
small caps fonts: regular and italic for both the roman and typewriter
style. No bold and no sans.

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


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

* Re: Bold small caps
  2014-05-23 15:55 Bold " Mojca Miklavec
@ 2014-05-23 16:11 ` Wolfgang Schuster
  2014-05-23 16:46   ` Mojca Miklavec
  2014-05-23 16:49 ` Hans Hagen
  1 sibling, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2014-05-23 16:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.05.2014 um 17:55 schrieb Mojca Miklavec <mojca.miklavec.lists@gmail.com>:

> Hi,
> 
> I always forget how to use bold or italic small caps (I keep mixing
> addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be
> nice if simply
>    {\sc Normal and \bf Bold Small Caps} or
>    {\bf\sc Bold Small Caps}
> would work out-of-the-box.
> 
> The first hit on the wiki was
>    http://wiki.contextgarden.net/Bold_small_caps
> which contained just the MKII example. I added a MKIV example
>    {\setff{smallcaps} Normal and \bf bold Small Caps.}
> but the problem is that this example only works with <put any font
> name here> except for the default Latin Modern setup.
> 
> Would it make sense to fix this for the default LM setup as well?

This need to be done by the font designers because Latin Modern
uses a separate font for the small capitals and the \setff (better use
\feature) has no effect in this case.

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


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

* Bold small caps
@ 2014-05-23 15:55 Mojca Miklavec
  2014-05-23 16:11 ` Wolfgang Schuster
  2014-05-23 16:49 ` Hans Hagen
  0 siblings, 2 replies; 22+ messages in thread
From: Mojca Miklavec @ 2014-05-23 15:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I always forget how to use bold or italic small caps (I keep mixing
addff/setff and smcp/+smcp/smallcaps etc.). In ideal world it could be
nice if simply
    {\sc Normal and \bf Bold Small Caps} or
    {\bf\sc Bold Small Caps}
would work out-of-the-box.

The first hit on the wiki was
    http://wiki.contextgarden.net/Bold_small_caps
which contained just the MKII example. I added a MKIV example
    {\setff{smallcaps} Normal and \bf bold Small Caps.}
but the problem is that this example only works with <put any font
name here> except for the default Latin Modern setup.

Would it make sense to fix this for the default LM setup as well?

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


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

* Re: Bold Small Caps
  2013-06-25 13:34   ` Malte Stien
@ 2013-06-25 17:39     ` Sietse Brouwer
  0 siblings, 0 replies; 22+ messages in thread
From: Sietse Brouwer @ 2013-06-25 17:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Malte wrote:
> Thank you. However, I am getting an undefined control sequence here:
>
> l.4 {\bf This is bold {\feature
>                                [+][f:smallcaps] and bold small caps} and jus...
>
> However, the wiki page http://wiki.contextgarden.net/Featuresets
> confirms your syntax. What am I missing?

The version you are using? The `\feature[+][...]` syntax has been
around only since about March 2013; before that you had to use
`\addfeature[...]`. Does that explain the error you're getting?

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


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

* Re: Bold Small Caps
  2013-06-25 13:08 ` Wolfgang Schuster
@ 2013-06-25 13:34   ` Malte Stien
  2013-06-25 17:39     ` Sietse Brouwer
  0 siblings, 1 reply; 22+ messages in thread
From: Malte Stien @ 2013-06-25 13:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang,

Thank you. However, I am getting an undefined control sequence here:

l.4 {\bf This is bold {\feature
                               [+][f:smallcaps] and bold small caps} and jus...

However, the wiki page http://wiki.contextgarden.net/Featuresets confirms your syntax. What am I missing?

Regards,
Malte.


--
“The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.”

― Douglas Adams, Dirk Gently's Holistic Detective Agency

On 25/06/2013, at 11:08 PM, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> 
> Am 25.06.2013 um 14:59 schrieb Malte Stien <malte@stien.de>:
> 
>> Hello,
>> 
>> I am trying for bold small caps, such like
>> 
>> {\bf This is bold {\sc and bold small caps} and just bold again}
>> 
>> However, out of the box, the inner {\sc ...} part is not typeset in bold. So after a bit of looking I found this:
>> 
>> http://wiki.contextgarden.net/Bold_small_caps
>> 
>> But it does not work for me. I noticed the module (http://pmrb.free.fr/work/OS/ConTeXt/) is from 2006, so the bit rot might have set in. Should it still work? Or is there a better way these days?
> 
> 
> When you have a opentype font with bold smallcaps you can enable them with the \feature command:
> 
> \setupbodyfont[pagella]
> 
> \starttext
> {\bf This is bold {\feature[+][f:smallcaps] and bold small caps} and just bold again}
> \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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Bold Small Caps
  2013-06-25 12:59 Bold Small Caps Malte Stien
@ 2013-06-25 13:08 ` Wolfgang Schuster
  2013-06-25 13:34   ` Malte Stien
  0 siblings, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2013-06-25 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.06.2013 um 14:59 schrieb Malte Stien <malte@stien.de>:

> Hello,
> 
> I am trying for bold small caps, such like
> 
>  {\bf This is bold {\sc and bold small caps} and just bold again}
> 
> However, out of the box, the inner {\sc ...} part is not typeset in bold. So after a bit of looking I found this:
> 
>  http://wiki.contextgarden.net/Bold_small_caps
> 
> But it does not work for me. I noticed the module (http://pmrb.free.fr/work/OS/ConTeXt/) is from 2006, so the bit rot might have set in. Should it still work? Or is there a better way these days?


When you have a opentype font with bold smallcaps you can enable them with the \feature command:

\setupbodyfont[pagella]

\starttext
{\bf This is bold {\feature[+][f:smallcaps] and bold small caps} and just bold again}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Bold Small Caps
@ 2013-06-25 12:59 Malte Stien
  2013-06-25 13:08 ` Wolfgang Schuster
  0 siblings, 1 reply; 22+ messages in thread
From: Malte Stien @ 2013-06-25 12:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I am trying for bold small caps, such like

  {\bf This is bold {\sc and bold small caps} and just bold again}

However, out of the box, the inner {\sc ...} part is not typeset in bold. So after a bit of looking I found this:

  http://wiki.contextgarden.net/Bold_small_caps

But it does not work for me. I noticed the module (http://pmrb.free.fr/work/OS/ConTeXt/) is from 2006, so the bit rot might have set in. Should it still work? Or is there a better way these days?

Thank you,
Malte.


--
“The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.”

― Douglas Adams, Dirk Gently's Holistic Detective Agency

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

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

* Re: bold small caps
  2010-12-12 19:39           ` Peter Münster
@ 2010-12-15 11:43             ` Hans Hagen
  0 siblings, 0 replies; 22+ messages in thread
From: Hans Hagen @ 2010-12-15 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12-12-2010 8:39, Peter Münster wrote:
> On Sun, Dec 12 2010, Wolfgang Schuster wrote:
>>
>> \unexpanded\def\sc{\doifelsecurrentfonthasfeature{smcp}{\addfs{smcp}}\normalsc}
>
> Nice!  Hans, what about integration into the core?

when it works out ok, I'm sure that wolfgang and I will look into it

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bold small caps
  2010-12-12 16:07         ` Wolfgang Schuster
  2010-12-12 19:39           ` Peter Münster
@ 2010-12-13 10:38           ` Marco
  1 sibling, 0 replies; 22+ messages in thread
From: Marco @ 2010-12-13 10:38 UTC (permalink / raw)
  To: ntg-context

On 2010-12-12 Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

> > Maybe it is possible that the \sc macro can check if the font contains the
> > small caps as a feature. Is there a switch like
> > \doiffontfeatureexists{smcp}{...}?
> 
> \startluacode
>     function commands.doifelsecurrentfonthasfeature(name)
>         local f = fonts.identifiers[font.current()]
>         f = f and f.shared
>         f = f and f.otfdata
>         f = f and f.luatex
>         f = f and f.features
>         commands.doifelse(f and (f.gpos[name] or f.gsub[name]))
>     end
> \stopluacode
> 
> \def\doifelsecurrentfonthasfeature#1%
>   {\ctxlua{commands.doifelsecurrentfonthasfeature("#1")}}
> 
> \let\normalsc\sc
> \definefontfeature[smcp][smcp=yes]
> \definefontfeature[latn][script=latn]
> 
> \unexpanded\def\sc{\doifelsecurrentfonthasfeature{smcp}{\addfs{smcp}}\normalsc}
> 
> \starttext
> 
> \tf text \sc text
> 
> \switchtobodyfont[cambria]\addfs{latn} % cambria needs the latin script for
> smallcaps
> 
> \tf text \addfs{smcp} text
> 
> \switchtobodyfont[modern]
> 
> \tf text \sc text
> 
> \stoptext
That's a nice piece of code! Thanks for your effort.

Marco


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


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

* Re: bold small caps
  2010-12-12 16:07         ` Wolfgang Schuster
@ 2010-12-12 19:39           ` Peter Münster
  2010-12-15 11:43             ` Hans Hagen
  2010-12-13 10:38           ` Marco
  1 sibling, 1 reply; 22+ messages in thread
From: Peter Münster @ 2010-12-12 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Dec 12 2010, Wolfgang Schuster wrote:
> 
> \unexpanded\def\sc{\doifelsecurrentfonthasfeature{smcp}{\addfs{smcp}}\normalsc}

Nice!  Hans, what about integration into the core?
Thanks Wolfgang!
Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bold small caps
  2010-12-12 15:22       ` Marco
@ 2010-12-12 16:07         ` Wolfgang Schuster
  2010-12-12 19:39           ` Peter Münster
  2010-12-13 10:38           ` Marco
  0 siblings, 2 replies; 22+ messages in thread
From: Wolfgang Schuster @ 2010-12-12 16:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.12.2010 um 16:22 schrieb Marco:

> On 2010-12-12 Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> 
>>> Depending on your answers, I would perhaps request to trigger
>>> \setff{smallcaps} by \sc in the core.
>> 
>> Can be a problem because we have font (e.g. Latin Modern) where
>> smallcaps are still in a separate file.
> So the user has to know in which fashion the small caps were created, as font
> feature or in a seperate file. That's not very convenient. When the user
> switches to another font it may break the document, since he has to change the
> \setff{smallcaps} to \sc.
> 
> Maybe it is possible that the \sc macro can check if the font contains the
> small caps as a feature. Is there a switch like
> \doiffontfeatureexists{smcp}{...}? I have the following logic in mind:
> 
> 1) Check if small caps are a font feature, if not
> 2) check if small caps are in a seperate font, if not
> 3) fake them.

\startluacode
    function commands.doifelsecurrentfonthasfeature(name)
        local f = fonts.identifiers[font.current()]
        f = f and f.shared
        f = f and f.otfdata
        f = f and f.luatex
        f = f and f.features
        commands.doifelse(f and (f.gpos[name] or f.gsub[name]))
    end
\stopluacode

\def\doifelsecurrentfonthasfeature#1%
  {\ctxlua{commands.doifelsecurrentfonthasfeature("#1")}}

\let\normalsc\sc
\definefontfeature[smcp][smcp=yes]
\definefontfeature[latn][script=latn]

\unexpanded\def\sc{\doifelsecurrentfonthasfeature{smcp}{\addfs{smcp}}\normalsc}

\starttext

\tf text \sc text

\switchtobodyfont[cambria]\addfs{latn} % cambria needs the latin script for smallcaps

\tf text \addfs{smcp} text

\switchtobodyfont[modern]

\tf text \sc text

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


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

* Re: bold small caps
  2010-12-12  8:30     ` Wolfgang Schuster
@ 2010-12-12 15:22       ` Marco
  2010-12-12 16:07         ` Wolfgang Schuster
  0 siblings, 1 reply; 22+ messages in thread
From: Marco @ 2010-12-12 15:22 UTC (permalink / raw)
  To: ntg-context

On 2010-12-12 Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

> > Depending on your answers, I would perhaps request to trigger
> > \setff{smallcaps} by \sc in the core.
> 
> Can be a problem because we have font (e.g. Latin Modern) where
> smallcaps are still in a separate file.
So the user has to know in which fashion the small caps were created, as font
feature or in a seperate file. That's not very convenient. When the user
switches to another font it may break the document, since he has to change the
\setff{smallcaps} to \sc.

Maybe it is possible that the \sc macro can check if the font contains the
small caps as a feature. Is there a switch like
\doiffontfeatureexists{smcp}{...}? I have the following logic in mind:

1) Check if small caps are a font feature, if not
2) check if small caps are in a seperate font, if not
3) fake them.


Regards
Marco


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


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

* Re: bold small caps
  2010-12-11 23:12   ` Peter Münster
@ 2010-12-12  8:30     ` Wolfgang Schuster
  2010-12-12 15:22       ` Marco
  0 siblings, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2010-12-12  8:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.12.2010 um 00:12 schrieb Peter Münster:

> On Sat, Dec 11 2010, Florian Wobbe wrote:
> 
>> {\setff{smallcaps} SmallCaps {\bf BoldCaps}}
> 
> Hello,
> 
> Thanks! What's the difference between \sc and \setff{smallcaps}?

By default \sc switch to a different font like \it or \bf but now
with opentype fonts smallcaps are a part of many fonts which can
be enabled with the smcp feature.

> Could something like "\def\sc{\setff{smallcaps}}" in the preamble harm
> in any way?

I would change this to

\definefontfeature[smcp][mode=node,smcp=yes]

\unexpanded\def\sc{\addfs{smcp}}

> Depending on your answers, I would perhaps request to trigger
> \setff{smallcaps} by \sc in the core.

Can be a problem because we have font (e.g. Latin Modern) where
smallcaps are still in a separate file.

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


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

* Re: bold small caps
  2010-12-11 22:57 ` Florian Wobbe
@ 2010-12-11 23:12   ` Peter Münster
  2010-12-12  8:30     ` Wolfgang Schuster
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Münster @ 2010-12-11 23:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Dec 11 2010, Florian Wobbe wrote:

> {\setff{smallcaps} SmallCaps {\bf BoldCaps}}

Hello,

Thanks! What's the difference between \sc and \setff{smallcaps}?

Could something like "\def\sc{\setff{smallcaps}}" in the preamble harm
in any way?

Depending on your answers, I would perhaps request to trigger
\setff{smallcaps} by \sc in the core.

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bold small caps
  2010-12-11 22:40 bold small caps Peter Münster
@ 2010-12-11 22:57 ` Florian Wobbe
  2010-12-11 23:12   ` Peter Münster
  0 siblings, 1 reply; 22+ messages in thread
From: Florian Wobbe @ 2010-12-11 22:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Dec 11, 2010, at 23:40 , Peter Münster wrote:

> Hello,
> 
> Is there a font in the minimals with bold small caps? I've tried lm and some
> tex-gyre fonts, but no success so far...
> 
> Test file:
> 
> \setupbodyfont[???]
> \starttext
> {\sc\bf Test} or {\bf\sc Test} should give bold small caps...
> \stoptext

Hi, this should work:

\setupbodyfont[pagella]

\starttext
{\setff{smallcaps} SmallCaps {\bf BoldCaps}}
\stoptext

Florian

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


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

* bold small caps
@ 2010-12-11 22:40 Peter Münster
  2010-12-11 22:57 ` Florian Wobbe
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Münster @ 2010-12-11 22:40 UTC (permalink / raw)
  To: ConTeXt list

Hello,

Is there a font in the minimals with bold small caps? I've tried lm and some
tex-gyre fonts, but no success so far...

Test file:

\setupbodyfont[???]
\starttext
{\sc\bf Test} or {\bf\sc Test} should give bold small caps...
\stoptext

http://wiki.contextgarden.net/Pseudo_Small_Caps seems to apply only to mkii.

TIA for any help!
Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* bold small caps
@ 2004-01-09 21:33 Peter Münster
  0 siblings, 0 replies; 22+ messages in thread
From: Peter Münster @ 2004-01-09 21:33 UTC (permalink / raw)


Hello,
I just tried the Latin Modern font, but there are no bold small caps
available, as in the EC fonts. Is it possible to add EC support to ConTeXt?
TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
------------------------------------
Film Search site: http://f-s.sf.net/

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

end of thread, other threads:[~2023-04-03 21:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03  7:07 bold small caps Peter Münster via ntg-context
2023-04-03  9:34 ` Hans Hagen via ntg-context
2023-04-03 21:33 ` Pablo Rodriguez via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2014-05-23 15:55 Bold " Mojca Miklavec
2014-05-23 16:11 ` Wolfgang Schuster
2014-05-23 16:46   ` Mojca Miklavec
2014-05-23 16:52     ` Hans Hagen
2014-05-23 16:49 ` Hans Hagen
2013-06-25 12:59 Bold Small Caps Malte Stien
2013-06-25 13:08 ` Wolfgang Schuster
2013-06-25 13:34   ` Malte Stien
2013-06-25 17:39     ` Sietse Brouwer
2010-12-11 22:40 bold small caps Peter Münster
2010-12-11 22:57 ` Florian Wobbe
2010-12-11 23:12   ` Peter Münster
2010-12-12  8:30     ` Wolfgang Schuster
2010-12-12 15:22       ` Marco
2010-12-12 16:07         ` Wolfgang Schuster
2010-12-12 19:39           ` Peter Münster
2010-12-15 11:43             ` Hans Hagen
2010-12-13 10:38           ` Marco
2004-01-09 21:33 Peter Münster

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