ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Scaling down symbols and emojis
@ 2019-01-16 20:56 User 19087
  2019-01-16 21:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: User 19087 @ 2019-01-16 20:56 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1226 bytes --]

I'm having trouble scaling down symbols and emojis. For a while I assumed
these don't scale with the current font size. Then I scoured the mailing
list and realized that while scaling down seems broken, scaling up works as
expected:


\usesymbols[mvs]

\setupsymbolset[martinvogel 2]

%\showallmakeup

\starttext
% Progressively larger as expected.
\symbol[ShortForty]
{\tfa\symbol[ShortForty]}
{\tfb\symbol[ShortForty]}
{\tfc\symbol[ShortForty]}
{\tfd\symbol[ShortForty]}

% Unexpectedly all the same size.
\symbol[ShortForty]
{\tfx\symbol[ShortForty]}
{\tfxx\symbol[ShortForty]}

% This works, but why? Isn't \small just a synonym for \tfx via
% \definealternativestyle? Anyway there is no synonym for \tfxx.
\symbol[ShortForty]
{\switchtobodyfont[small]\symbol[ShortForty]}
{\small\symbol[ShortForty]}

% This also works but is less than ideal when matching surrounding font
sizes.
% Which factor should I use to match \tfxx?
\symbol[ShortForty]
\scale[factor=4]{\symbol[ShortForty]}

% Same as above comment, more or less.
\symbol[ShortForty]
{\switchtobodyfont[5pt]\symbol[ShortForty]}
\stoptext


* MWE for builtin symbols; emojis require local fonts. I assume whichever
solution would apply equally to either.

thanks,

[-- Attachment #1.2: Type: text/html, Size: 1478 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] 10+ messages in thread

end of thread, other threads:[~2019-01-19 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 20:56 Scaling down symbols and emojis User 19087
2019-01-16 21:24 ` Wolfgang Schuster
2019-01-16 23:29   ` User 19087
2019-01-17 12:39   ` User 19087
2019-01-17 13:30   ` User 19087
2019-01-18 11:47     ` Wolfgang Schuster
2019-01-18 21:44       ` User 19087
2019-01-19  8:42         ` User 19087
2019-01-19  8:59           ` Wolfgang Schuster
2019-01-19 17:50             ` User 19087

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