Multiple languages

8 views
Skip to first unread message

jimbomaha

unread,
Aug 20, 2009, 7:29:22 PM8/20/09
to cufón
Hi,

We're looking at using multiple languages alongside a jQuery language
translation plugin, but some languages (such as chinese) will not work
with the fonts used throughout the english language site.

Is there a way to either (called after translation):

1 - Change the font
2 - Remove cufon so the standard web font is shown

If there's a way of doing option 2 that would be perfect, as I guess
that a font containing chinese characters would be pretty large!

Cheers,

James

Simo Kinnunen

unread,
Aug 21, 2009, 12:52:55 PM8/21/09
to cu...@googlegroups.com
Hi James,

You can implement option 1 yourself, but option 2 is not possible at
the moment (unless you wrap all non-chinese words inside some kind of
wrapper elements and replace those instead of the whole thing). I'll
consider this for version 1.1 though.

Simo

markus

unread,
Aug 24, 2009, 3:50:40 AM8/24/09
to cufón
I am working on a similar problem. I'm trying to build a blog in
chinese language. I found a font I want to use for the blog but can't
get it to work even with ALL charachters and sets included. Meanwhile
the js-file is a little above 5MB and still not displaying the chinese
characters.

How can I use the chinese font while keeping the file size low?

thanks

Markus

Simo Kinnunen

unread,
Aug 24, 2009, 3:15:37 PM8/24/09
to cu...@googlegroups.com
Hi Markus,

Are you using UTF-8? It's the only character set we support. It's also
possible that your font does not contain all the characters you need,
but if that's the case at least something should show up. I would
suggest compiling a list of chinese characters you're likely going to
need, and simply skip the rest. You're going to have to either enter
them one by one the text box reserved for single characters or use
Firebug or something similar to modify the value attribute of one of
the checkboxes to match the unicode range you want. Or if you're
running Linux or OS X, you can also install a local copy of the
generator and mofdify it to your heart's content.

You may also wish to disable kerning as it might save at least some
space.

Overall I think it's going to be a bad idea to use the font if you
can't get it down to a more manageable size. Even if your server
supports gzipping (which means that the transferred data probably ends
up being somewhere around 500KB), it can take a while for a browser to
go through the 5MB of data once it's been uncompressed.

By the way do you have an example?

Simo

Kevin Shek

unread,
Aug 24, 2009, 3:21:34 PM8/24/09
to cu...@googlegroups.com, cufón
Yes I too would like to know if Chinese fonts can be used. They vary
in size from 3MB to over 10MB in some cases.

If there is a solution for this it'll be a god send :)

Many Thanks
Reply all
Reply to author
Forward
0 new messages