ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Philipp A." <flying-sheep@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Chinese TTC fonts can not be loaded with the beta (2011.02.11)
Date: Sun, 13 Feb 2011 11:31:11 +0100	[thread overview]
Message-ID: <AANLkTinyhbSM2gJX2Xuq-xvs4Bmh+B06+Em5RCXBFDCy@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin+PA+Gohs6UuN6R8HNrgsN2fcp80-1a_nCdORP@mail.gmail.com>


[-- 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
___________________________________________________________________________________

  reply	other threads:[~2011-02-13 10:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13  6:22 Li Yanrui (李延瑞)
2011-02-13 10:31 ` Philipp A. [this message]
2011-02-14  0:40   ` Li Yanrui (李延瑞)
2011-02-14  7:30     ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinyhbSM2gJX2Xuq-xvs4Bmh+B06+Em5RCXBFDCy@mail.gmail.com \
    --to=flying-sheep@web.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).