Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for Foreign Fonts using I18N plugin
#4
angelazou Wrote:Well, I think font hosting only solves part of my issue. You see, when I select to use a particular font, for example, verdana, it's set in the CSS files. Fonts for another language, like Chinese, of course uses a different font. And because verdana (in this example) doesn't have its Chinese corresponding fonts, then the browser falls back to use the default, whatever that's available on this system.

I want to know how I can tell GetSimple to use a different font when using a different language. I think this may be something to do with how the I18N plugin works.

Regards,
Angela

You can add a CSS class with the current language to e.g. the body of the page
Code:
<body ... class="<?php echo @$language; ?>">
and then set a font based on this class in your style sheet:
Code:
body.zh {
  font-family: ...
}
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Support for Foreign Fonts using I18N plugin - by mvlcek - 2011-05-25, 16:01:01



Users browsing this thread: 1 Guest(s)