> Western font can be directly be used, but with Asian fonts (Japan/
> China/Korea) having huge fonts it would be nice to use build-in
> fonts.
> ( http://www.adobe.com/products/acrobat/acrrasianfontpack.html )
As far as I know, this is a vendor-specific feature. The PDF spec
only specifies a very small set of latin fonts.
Luckily, we support subsetting in Prawn so only the characters you use
will be embedded. That will hopefully keep your file sizes
manageable.
-greg
> I would like to attach PDF's showing the difference, but google-groups
> seems to have no attachment.
You can send one via email to:
prawn...@googlegroups.com
> BTW: I love the the this wonderful prawn documentation:
> http://github.com/sandal/prawn/blob/656ef4d88bf30cec3ebbbcdcc133cee27ef9948c/manual/src/index.txt
>
> Just there is a minor mistake: the "wrap mode" parameter for the
> "text" command is called ":wrap" in the documentation but ":mode" in
> the gem release.
> Looks like documentation or gem-released version is outdated. :-)
Yep, that documentation was never officially released but will be
spruced up as part of Duke Nukem Fore....
Prawn 0.5.1
> I liked to try ("Droid Sans Fallback") but prawn is raising the
> exception:
> "no unicode cmap for font"
> Have not checked the details, but I assume that this exception means
> only unicode cmap TTF tables are currently supported?
> (guess this font is e.g. JIS encoded cmap)
> Is there any plan to support this?
I would accept a patch if it did not break backwards compatibility.
But currently, the approach with Prawn is to target UTF-8. It'll
transcode automatically for you on Ruby 1.9, but under the hood, it's
all UTF-8 so we don't look for other cmaps in fonts.
-greg
That's correct. You might want to dump these details onto a ticket in
the Github issues tracker there. Easier to find that way.
you don't need to sign up for github, but you really should use git
format-patch instead of diff. This is to retain your authorship.
Go ahead and update the ticket when you have a git formatted patch,
and I'll pull it in. Code looks fine.
-greg