* Re: Font sizes using Chinese module
[not found] <mailman.1.1194433206.23687.ntg-context@ntg.nl>
@ 2007-11-07 11:45 ` Duncan Hothersall
2007-11-07 14:53 ` Hans Hagen
2007-11-07 16:06 ` \blank[big] Vyatcheslav Yatskovsky
1 sibling, 1 reply; 6+ messages in thread
From: Duncan Hothersall @ 2007-11-07 11:45 UTC (permalink / raw)
To: ntg-context
Hans said:
> \definefontsize[e]
>
> \setupfontenvironment
> [default]
> [e=4]
>
Ah, thanks. Using \setupbodyfontenvironment as the second command did
the trick.
I guess there is no easy way of directly calling a specific font at a
specific size? No worry, this sort of solution will allow me to do what
I need for now. Thanks Hans.
Duncan
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Font sizes using Chinese module
2007-11-07 11:45 ` Font sizes using Chinese module Duncan Hothersall
@ 2007-11-07 14:53 ` Hans Hagen
2007-11-07 16:28 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2007-11-07 14:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Duncan Hothersall wrote:
> Hans said:
>> \definefontsize[e]
>>
>> \setupfontenvironment
>> [default]
>> [e=4]
>>
> Ah, thanks. Using \setupbodyfontenvironment as the second command did
> the trick.
>
> I guess there is no easy way of directly calling a specific font at a
> specific size? No worry, this sort of solution will allow me to do what
> I need for now. Thanks Hans.
chinese in mkii is kind of special, i.e. all kind of mappings to ranges
of fonts; in mkiv chines is easier (i still have to finish some spacing
issues)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* \blank[big]
[not found] <mailman.1.1194433206.23687.ntg-context@ntg.nl>
2007-11-07 11:45 ` Font sizes using Chinese module Duncan Hothersall
@ 2007-11-07 16:06 ` Vyatcheslav Yatskovsky
2007-11-07 16:38 ` \blank[big] Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Vyatcheslav Yatskovsky @ 2007-11-07 16:06 UTC (permalink / raw)
To: ntg-context-request@ntg.nl
Hello,
Excuse me, but what 'big' stands for in \blank[big]?
Every time I use it, I expect really big white space, but get only hardly noticeable one.
Best regards,
Vaytcheslav
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Font sizes using Chinese module
2007-11-07 14:53 ` Hans Hagen
@ 2007-11-07 16:28 ` Wolfgang Schuster
2007-11-07 18:16 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2007-11-07 16:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1397 bytes --]
2007/11/7, Hans Hagen <pragma@wxs.nl>:
>
> Duncan Hothersall wrote:
> > Hans said:
> >> \definefontsize[e]
> >>
> >> \setupfontenvironment
> >> [default]
> >> [e=4]
> >>
> > Ah, thanks. Using \setupbodyfontenvironment as the second command did
> > the trick.
> >
> > I guess there is no easy way of directly calling a specific font at a
> > specific size? No worry, this sort of solution will allow me to do what
> > I need for now. Thanks Hans.
>
> chinese in mkii is kind of special, i.e. all kind of mappings to ranges
> of fonts; in mkiv chines is easier (i still have to finish some spacing
> issues)
How about a little appetizer from mkiv.
\definefontfeature[chinese][analyze=yes,language=dflt,mode=node,script=hani]
\starttypescript[sans][arial]
\definefontsynonym[Sans][Arial][features=chinese]
\stoptypescript
\starttypescript[sans][arial]
\definefontsynonym[Arial][file:ARIALUNI][features=default]
\stoptypescript
\definetypeface[arial][ss][sans][arial][default]
\setupbodyfont[arial,ss]
% alternative to the typescript solution
%\definefont[Normal][ARIALUNI*chinese at 12pt][line=16pt]
\starttext
write your chinese text here
\stoptext
There will be no longer any big difference in defining fonts for latin or
any
other language. A few things are to achive than with the current code from
the
chinese module like opening and closing braces in vertical mode.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1929 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \blank[big]
2007-11-07 16:06 ` \blank[big] Vyatcheslav Yatskovsky
@ 2007-11-07 16:38 ` Wolfgang Schuster
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2007-11-07 16:38 UTC (permalink / raw)
To: Yatskovsky, mailing list for ConTeXt users
2007/11/7, Vyatcheslav Yatskovsky <yatskovsky@gmail.com>:
> Hello,
>
> Excuse me, but what 'big' stands for in \blank[big]?
>
> Every time I use it, I expect really big white space, but get only hardly noticeable one.
>
> Best regards,
> Vaytcheslav
>From core-spa:
% In earlier versions \type{\bigskipamount} was
% \type{\ht\strutbox} and the stretch was plus or minus
% \type{.4\dp\strutbox}. Don't ask me why. The most recent
% implementation is based on a user supplied distance, which
% is by default \type{.75\normalskipamount} where
% \type{\normalskipamount} equals the current baseline
% distance.
The normal \blank is equal to \blank[big] but you can change this with
\setupblank[...]
To get bigger values for blank you write for example:
\starttext
Line 1
\blank
Line 2
\blank[2*big]
\setupblank[2\baselineskip]
Line 3
\blank
Line 4
\stoptext
The source code is your friend.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Font sizes using Chinese module
2007-11-07 16:28 ` Wolfgang Schuster
@ 2007-11-07 18:16 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2007-11-07 18:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Wolfgang Schuster wrote:
> 2007/11/7, Hans Hagen <pragma@wxs.nl>:
>> Duncan Hothersall wrote:
>>> Hans said:
>>>> \definefontsize[e]
>>>>
>>>> \setupfontenvironment
>>>> [default]
>>>> [e=4]
>>>>
>>> Ah, thanks. Using \setupbodyfontenvironment as the second command did
>>> the trick.
>>>
>>> I guess there is no easy way of directly calling a specific font at a
>>> specific size? No worry, this sort of solution will allow me to do what
>>> I need for now. Thanks Hans.
>> chinese in mkii is kind of special, i.e. all kind of mappings to ranges
>> of fonts; in mkiv chines is easier (i still have to finish some spacing
>> issues)
>
>
> How about a little appetizer from mkiv.
>
> \definefontfeature[chinese][analyze=yes,language=dflt,mode=node,script=hani]
>
> \starttypescript[sans][arial]
> \definefontsynonym[Sans][Arial][features=chinese]
> \stoptypescript
>
> \starttypescript[sans][arial]
> \definefontsynonym[Arial][file:ARIALUNI][features=default]
> \stoptypescript
>
> \definetypeface[arial][ss][sans][arial][default]
>
> \setupbodyfont[arial,ss]
>
> % alternative to the typescript solution
> %\definefont[Normal][ARIALUNI*chinese at 12pt][line=16pt]
>
> \starttext
>
> write your chinese text here
>
> \stoptext
>
> There will be no longer any big difference in defining fonts for latin or
> any
> other language. A few things are to achive than with the current code from
> the
> chinese module like opening and closing braces in vertical mode.
a next mkiv release will provide dynamic features ...
\definefontfeature[chinese][analyze=yes,language=dflt,mode=node,script=hani]
\starttypescript[sans][arial]
\definefontsynonym[Sans][Arial]
\stoptypescript
\starttypescript[sans][arial]
\definefontsynonym[Arial][file:ARIALUNI]
\stoptypescript
\definetypeface[arial][ss][sans][arial][default]
\setupbodyfont[arial,ss]
\starttext
bla bla {\setfontfeature{chinese} MORE BLA} bla bla
{\setfontfeature{oldstyle} 1234} bla bla
\stoptext
so, just one font instance and independent feature switches; this saves
multiple definitions of fonts and is therefore faster and takes less
memory too
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-11-07 18:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1194433206.23687.ntg-context@ntg.nl>
2007-11-07 11:45 ` Font sizes using Chinese module Duncan Hothersall
2007-11-07 14:53 ` Hans Hagen
2007-11-07 16:28 ` Wolfgang Schuster
2007-11-07 18:16 ` Hans Hagen
2007-11-07 16:06 ` \blank[big] Vyatcheslav Yatskovsky
2007-11-07 16:38 ` \blank[big] Wolfgang Schuster
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).