ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chinese TTC fonts can not be loaded with the beta (2011.02.11)
@ 2011-02-13  6:22 Li Yanrui (李延瑞)
  2011-02-13 10:31 ` Philipp A.
  0 siblings, 1 reply; 4+ messages in thread
From: Li Yanrui (李延瑞) @ 2011-02-13  6:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

For this example with simsun.ttc (it can be download from
http://www.slax.org/modules.php?action=detail&id=2630):

\definefont[song][name:nsimsun]
\starttext
\song 测试
\stoptext

ConTeXt MkIV said:

fonts           > fallback modern rm 12pt is loaded
system          > begin file b at line 3
fonts           > otf loading > loading:
selfautoparent:texmf-local/fonts/truetype/winfonts/simsun.ttc (hash:
simsun-nsimsun)
fonts           > otf loading > font loaded okay
fonts           > otf loading > loading failed (file read error)
fonts           > defining > forced type ttc of simsun not found

I have tested the uming.ttc (AR PL UMing, it can be download from
http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download) and got
the same error.

-- 
Best regards,

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

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

* Re: Chinese TTC fonts can not be loaded with the beta (2011.02.11)
  2011-02-13  6:22 Chinese TTC fonts can not be loaded with the beta (2011.02.11) Li Yanrui (李延瑞)
@ 2011-02-13 10:31 ` Philipp A.
  2011-02-14  0:40   ` Li Yanrui (李延瑞)
  0 siblings, 1 reply; 4+ messages in thread
From: Philipp A. @ 2011-02-13 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/2/13 Li Yanrui (李延瑞) <liyanrui.m2@gmail.com>

> Hi,
>
> For this example with simsun.ttc (it can be download from
> http://www.slax.org/modules.php?action=detail&id=2630):
>
> \definefont[song][name:nsimsun]
> \starttext
> \song 测试
> \stoptext
>
> ConTeXt MkIV said:
>
> fonts           > fallback modern rm 12pt is loaded
> system          > begin file b at line 3
> fonts           > otf loading > loading:
> selfautoparent:texmf-local/fonts/truetype/winfonts/simsun.ttc (hash:
> simsun-nsimsun)
> fonts           > otf loading > font loaded okay
> fonts           > otf loading > loading failed (file read error)
> fonts           > defining > forced type ttc of simsun not found
>
> I have tested the uming.ttc (AR PL UMing, it can be download from
> http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download) and got
> the same error.
>
> --
> Best regards,
>
> Li Yanrui
>

i wanted to load a ttc at one point, too, and failed.

i found beer <http://www.eonet.ne.jp/%7Ehirotsu/myware.html>, a free
software collection, and ported it’s ttc2ttf tool to python (as a
challenge).

you can find my port here <http://pastebin.com/QXcAtP24>, but it doesn’t get
the magic numbers right. it works for me, though.

[-- Attachment #1.2: Type: text/html, Size: 1847 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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] 4+ messages in thread

* Re: Chinese TTC fonts can not be loaded with the beta (2011.02.11)
  2011-02-13 10:31 ` Philipp A.
@ 2011-02-14  0:40   ` Li Yanrui (李延瑞)
  2011-02-14  7:30     ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Li Yanrui (李延瑞) @ 2011-02-14  0:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/2/13 Philipp A. <flying-sheep@web.de>:
>
> i wanted to load a ttc at one point, too, and failed.
>
> i found beer, a free software collection, and ported it’s ttc2ttf tool to
> python (as a challenge).
>
> you can find my port here, but it doesn’t get the magic numbers right. it
> works for me, though.
>

In fact  the ttc fonts can be loaded and used in the beta before
2011.02.11. For extracting ttf from ttc you can also use fontforge.

-- 
Best regards,

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

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

* Re: Chinese TTC fonts can not be loaded with the beta (2011.02.11)
  2011-02-14  0:40   ` Li Yanrui (李延瑞)
@ 2011-02-14  7:30     ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2011-02-14  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/14/2011 01:40 AM, Li Yanrui (李延瑞) wrote:
> 2011/2/13 Philipp A.<flying-sheep@web.de>:
>>
>> i wanted to load a ttc at one point, too, and failed.
>>
>> i found beer, a free software collection, and ported it’s ttc2ttf tool to
>> python (as a challenge).
>>
>> you can find my port here, but it doesn’t get the magic numbers right. it
>> works for me, though.
>>
>
> In fact  the ttc fonts can be loaded and used in the beta before
> 2011.02.11. For extracting ttf from ttc you can also use fontforge.

This and the problem with the Symbola otf are just bugs. Using fontforge
is possible, but really ConTeXt should be fixed.

Best wishes,
Taco


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

end of thread, other threads:[~2011-02-14  7:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-13  6:22 Chinese TTC fonts can not be loaded with the beta (2011.02.11) Li Yanrui (李延瑞)
2011-02-13 10:31 ` Philipp A.
2011-02-14  0:40   ` Li Yanrui (李延瑞)
2011-02-14  7:30     ` Taco Hoekwater

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