* Simplefonts: Font scaling problem
@ 2011-11-11 17:14 Christian
2011-11-11 17:20 ` Christian
0 siblings, 1 reply; 6+ messages in thread
From: Christian @ 2011-11-11 17:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Good evening!
I want to scale a font loaded via the simplefonts so sans and serif have the same x-height.
But as soon as I use a font size larger than 12pt, the scaling is somehow off or ignored.
Example:
\usemodule[simplefonts]
\setupsimplefonts[expansion=quality, protrusion=quality]
\setmainfont[Times New Roman]
\setsansfont[Arial][scale=0.863]
\starttext
\setupbodyfont[6pt]
06pt serif xx{\ss xx sans}\\ %fine
\setupbodyfont[12pt]
12pt serif xx{\ss xx sans}\\ %fine, too
\setupbodyfont[14pt]
14pt serif xx{\ss xx sans}\\ %here it starts to be off
\setupbodyfont[16pt]
16pt serif xx{\ss xx sans}\\
\stoptext
What is up with that?
[-- Attachment #2: FontScaling.JPG --]
[-- Type: image/jpeg, Size: 23716 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simplefonts: Font scaling problem
2011-11-11 17:14 Simplefonts: Font scaling problem Christian
@ 2011-11-11 17:20 ` Christian
2011-11-12 10:01 ` Thomas A. Schmitz
0 siblings, 1 reply; 6+ messages in thread
From: Christian @ 2011-11-11 17:20 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
> Good evening!
> I want to scale a font loaded via the simplefonts so sans and serif have the
> same x-height.
> But as soon as I use a font size larger than 12pt, the scaling is somehow off or
> ignored.
> Example:
>
> \usemodule[simplefonts]
> \setupsimplefonts[expansion=quality, protrusion=quality]
> \setmainfont[Times New Roman]
> \setsansfont[Arial][scale=0.863]
> \starttext
> \setupbodyfont[6pt]
> 06pt serif xx{\ss xx sans}\\ %fine
> \setupbodyfont[12pt]
> 12pt serif xx{\ss xx sans}\\ %fine, too
> \setupbodyfont[14pt]
> 14pt serif xx{\ss xx sans}\\ %here it starts to be off
> \setupbodyfont[16pt]
> 16pt serif xx{\ss xx sans}\\
> \stoptext
>
> What is up with that?
Additional Information:
11pt -> working fine
11.5pt -> not working / not scaled
12pt-> working fine
ConTeXt ver: 2011.11.09 20:58 MKIV
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Simplefonts: Font scaling problem
2011-11-11 17:20 ` Christian
@ 2011-11-12 10:01 ` Thomas A. Schmitz
2011-11-12 14:33 ` Christian
2011-11-12 14:44 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Thomas A. Schmitz @ 2011-11-12 10:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/11/2011 06:20 PM, Christian wrote:
> Good evening!
>> I want to scale a font loaded via the simplefonts so sans and serif have the
>> same x-height.
>> But as soon as I use a font size larger than 12pt, the scaling is somehow off or
>> ignored.
>> Example:
>>
>> \usemodule[simplefonts]
>> \setupsimplefonts[expansion=quality, protrusion=quality]
>> \setmainfont[Times New Roman]
>> \setsansfont[Arial][scale=0.863]
>> \starttext
>> \setupbodyfont[6pt]
>> 06pt serif xx{\ss xx sans}\\ %fine
>> \setupbodyfont[12pt]
>> 12pt serif xx{\ss xx sans}\\ %fine, too
>> \setupbodyfont[14pt]
>> 14pt serif xx{\ss xx sans}\\ %here it starts to be off
>> \setupbodyfont[16pt]
>> 16pt serif xx{\ss xx sans}\\
>> \stoptext
Your example is a bit difficult to test here because it's
windows-centric, I don't have Arial on my system. But by looking at it,
you should have something like this in your file before setting the fonts:
\starttypescript [sans] [default] [size]
\definebodyfont [16pt] [ss] [default]
\stoptypescript
\definebodyfontenvironment[16pt]
and so on for other arbitrary sizes. ConTeXt doesn't define complete
environments for every imaginable size (but I imagine Wolfgang may come
up with a clever solution within his module).
HTH
Thomas
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Simplefonts: Font scaling problem
2011-11-12 10:01 ` Thomas A. Schmitz
@ 2011-11-12 14:33 ` Christian
2011-11-12 14:44 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Christian @ 2011-11-12 14:33 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
> >> I want to scale a font loaded via the simplefonts so sans and serif
> >> have the same x-height.
> >> But as soon as I use a font size larger than 12pt, the scaling is
> >> somehow off or ignored.
> >> Example:
> >>
> >> \usemodule[simplefonts]
> >> \setupsimplefonts[expansion=quality, protrusion=quality]
> >> \setmainfont[Times New Roman] \setsansfont[Arial][scale=0.863]
> >> \starttext \setupbodyfont[6pt] 06pt serif xx{\ss xx sans}\\ %fine
> >> \setupbodyfont[12pt] 12pt serif xx{\ss xx sans}\\ %fine, too
> >> \setupbodyfont[14pt] 14pt serif xx{\ss xx sans}\\ %here it starts to
> >> be off \setupbodyfont[16pt] 16pt serif xx{\ss xx sans}\\ \stoptext
>
> Your example is a bit difficult to test here because it's windows-centric, I
> don't have Arial on my system. But by looking at it, you should have
> something like this in your file before setting the fonts:
>
> \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss] [default]
> \stoptypescript \definebodyfontenvironment[16pt]
>
> and so on for other arbitrary sizes. ConTeXt doesn't define complete
> environments for every imaginable size (but I imagine Wolfgang may come
> up with a clever solution within his module).
You are right! It's all fine, when I add the code you posted and insert the appropriate sizes for those where it didn't work before.
Thanks for your help.
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Simplefonts: Font scaling problem
2011-11-12 10:01 ` Thomas A. Schmitz
2011-11-12 14:33 ` Christian
@ 2011-11-12 14:44 ` Wolfgang Schuster
2011-11-12 14:48 ` Christian
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-11-12 14:44 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
Am 12.11.2011 um 11:01 schrieb Thomas A. Schmitz:
> On 11/11/2011 06:20 PM, Christian wrote:
>> Good evening!
>>> I want to scale a font loaded via the simplefonts so sans and serif have the
>>> same x-height.
>>> But as soon as I use a font size larger than 12pt, the scaling is somehow off or
>>> ignored.
>>> Example:
>>>
>>> \usemodule[simplefonts]
>>> \setupsimplefonts[expansion=quality, protrusion=quality]
>>> \setmainfont[Times New Roman]
>>> \setsansfont[Arial][scale=0.863]
>>> \starttext
>>> \setupbodyfont[6pt]
>>> 06pt serif xx{\ss xx sans}\\ %fine
>>> \setupbodyfont[12pt]
>>> 12pt serif xx{\ss xx sans}\\ %fine, too
>>> \setupbodyfont[14pt]
>>> 14pt serif xx{\ss xx sans}\\ %here it starts to be off
>>> \setupbodyfont[16pt]
>>> 16pt serif xx{\ss xx sans}\\
>>> \stoptext
>
> Your example is a bit difficult to test here because it's windows-centric, I don't have Arial on my system. But by looking at it, you should have something like this in your file before setting the fonts:
>
> \starttypescript [sans] [default] [size]
> \definebodyfont [16pt] [ss] [default]
> \stoptypescript
> \definebodyfontenvironment[16pt]
>
> and so on for other arbitrary sizes. ConTeXt doesn't define complete environments for every imaginable size (but I imagine Wolfgang may come up with a clever solution within his module).
A clever solution would take a while because in this case i want to change the whole code in rewrite it with all the new mkiv goodies and the spec interface.
A fast solution is also possible but it won’t be more than a fix.
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] 6+ messages in thread
* Re: Simplefonts: Font scaling problem
2011-11-12 14:44 ` Wolfgang Schuster
@ 2011-11-12 14:48 ` Christian
0 siblings, 0 replies; 6+ messages in thread
From: Christian @ 2011-11-12 14:48 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
> >> Good evening!
> >>> I want to scale a font loaded via the simplefonts so sans and serif
> >>> have the same x-height.
> >>> But as soon as I use a font size larger than 12pt, the scaling is
> >>> somehow off or ignored.
> >>> Example:
> >>>
> >>> \usemodule[simplefonts]
> >>> \setupsimplefonts[expansion=quality, protrusion=quality]
> >>> \setmainfont[Times New Roman] \setsansfont[Arial][scale=0.863]
> >>> \starttext \setupbodyfont[6pt] 06pt serif xx{\ss xx sans}\\ %fine
> >>> \setupbodyfont[12pt] 12pt serif xx{\ss xx sans}\\ %fine, too
> >>> \setupbodyfont[14pt] 14pt serif xx{\ss xx sans}\\ %here it starts to
> >>> be off \setupbodyfont[16pt] 16pt serif xx{\ss xx sans}\\ \stoptext
> >
> > Your example is a bit difficult to test here because it's windows-centric, I
> don't have Arial on my system. But by looking at it, you should have
> something like this in your file before setting the fonts:
> >
> > \starttypescript [sans] [default] [size] \definebodyfont [16pt] [ss]
> > [default] \stoptypescript \definebodyfontenvironment[16pt]
> >
> > and so on for other arbitrary sizes. ConTeXt doesn't define complete
> environments for every imaginable size (but I imagine Wolfgang may come
> up with a clever solution within his module).
>
> A clever solution would take a while because in this case i want to change the
> whole code in rewrite it with all the new mkiv goodies and the spec interface.
>
> A fast solution is also possible but it won’t be more than a fix.
No need to rush from my part. I have what I need (bodyfont in 11.5pt with a properly scaled sans companion).
I get the rest of the font sizes with \tfa etc. and that keeps the proportions intact.
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2011-11-12 14:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-11 17:14 Simplefonts: Font scaling problem Christian
2011-11-11 17:20 ` Christian
2011-11-12 10:01 ` Thomas A. Schmitz
2011-11-12 14:33 ` Christian
2011-11-12 14:44 ` Wolfgang Schuster
2011-11-12 14:48 ` Christian
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).