ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* A problem in fallback fonts of MkIV
@ 2008-10-01 16:30 Yanrui Li
  2008-10-02 19:55 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Yanrui Li @ 2008-10-01 16:30 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

Hi, Hans:

When I used AdobeSongStd-Light as my main font and used
LMRoman10-Regular as the fallback font, I found that the spaces
between Chinese characters and English words are perfect, for example:

\definefontfeature
  [zh][mode=node,script=hang,lang=zhs]
\definefontsynonym
  [zhserif][name:AdobeSongStd-Light][features=zh]
\definefontfallback
  [westernserif]
  [name:LMRoman10-Regular][0x0000-0x0400][force=yes]
\definefontsynonym
  [song][zhserif][fallbacks=westernserif]
\definefont[myfont][song at 12pt]

\starttext
\myfont
中文 English 之间的间隔\par
中文~English~之间的间隔\par
中文\;English\;之间的间隔
\stoptext

But, when I used SimSun instead of AdobeSongStd-Light, the spaces
between Chinese characters and English words became larger and ugly.
In previous example, spaces in the first two lines of text are larger
than those in the third one, even the spaces between English words
also become larger. I remerbered what you said, the fallback fonts can
be independent of the main font. However, I think the spaces between
the words are releated to the main font.

Would you give me a method for solving this problem? The pdf files
used as comparison are attached to in the mail and you can do a
comparative analysis.

Thanks.

by Li Yanrui

[-- Attachment #2: example.tar.gz --]
[-- Type: application/x-gzip, Size: 12378 bytes --]

[-- Attachment #3: 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] 3+ messages in thread

* Re: A problem in fallback fonts of MkIV
  2008-10-01 16:30 A problem in fallback fonts of MkIV Yanrui Li
@ 2008-10-02 19:55 ` Wolfgang Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2008-10-02 19:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.10.2008 um 18:30 schrieb Yanrui Li:

> Hi, Hans:
>
> When I used AdobeSongStd-Light as my main font and used
> LMRoman10-Regular as the fallback font, I found that the spaces
> between Chinese characters and English words are perfect, for example:
>
> \definefontfeature
>  [zh][mode=node,script=hang,lang=zhs]
> \definefontsynonym
>  [zhserif][name:AdobeSongStd-Light][features=zh]
> \definefontfallback
>  [westernserif]
>  [name:LMRoman10-Regular][0x0000-0x0400][force=yes]
> \definefontsynonym
>  [song][zhserif][fallbacks=westernserif]
> \definefont[myfont][song at 12pt]
>
> \starttext
> \myfont
> 中文 English 之间的间隔\par
> 中文~English~之间的间隔\par
> 中文\;English\;之间的间隔
> \stoptext
>
> But, when I used SimSun instead of AdobeSongStd-Light, the spaces
> between Chinese characters and English words became larger and ugly.
> In previous example, spaces in the first two lines of text are larger
> than those in the third one, even the spaces between English words
> also become larger. I remerbered what you said, the fallback fonts can
> be independent of the main font. However, I think the spaces between
> the words are releated to the main font.

I get this output with both fonts.

> Would you give me a method for solving this problem? The pdf files
> used as comparison are attached to in the mail and you can do a
> comparative analysis.

\spaceskip .25em plus .25em \relax

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] 3+ messages in thread

* Re: A problem in fallback fonts of MkIV
@ 2008-10-02 22:46 Yanrui Li
  0 siblings, 0 replies; 3+ messages in thread
From: Yanrui Li @ 2008-10-02 22:46 UTC (permalink / raw)
  To: ntg-context

On Thu, 2 Oct 2008 21:55:46, Wolfgang wrote:

> \spaceskip .25em plus .25em \relax

It works. Thank you Wolfgang.

Best wishes.

Li Yanrui
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2008-10-02 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-01 16:30 A problem in fallback fonts of MkIV Yanrui Li
2008-10-02 19:55 ` Wolfgang Schuster
2008-10-02 22:46 Yanrui Li

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