Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • timtecsa Friend
    #944555

    I’m developing a site with English and Chinese (both Traditional and Simplified). I would like to choose different fonts for each language with global setup. Any ideas ?

    timtecsa Friend
    #944952

    The question partly arises from the weight difference that is evident between Chinese Simplified and Traditional as seen on screenshots below. http://gpmnews.com/aop2/index.php/zh-cn/news-awards


    1. zhcn
    2. zhtw
    Ninja Lead Moderator
    #945333

    Hi Tim,

    In this case, you need to make a custom the style under English and Chinese languages

    • English language works by default

    • Chinese language works as my custom work below

    Create templates/ja_sugite/css/custom_language.css file and add new rule

    body {
        font-family: Helvetica, "Microsoft YaHei New","Microsoft Yahei","微软雅黑",宋体,SimSun,STXihei,"华文细黑",sans-serif !important;
    }

    Open templates/ja_sugite/tpls/blocks/head.php file and add code as my screenshot

    <?php
        if ($this->language !='en-gb') {
            $this->addStyleSheet(T3_TEMPLATE_URL . '/css/custom_language.css');   
        }
    ?>

    Hope it helps

    Regards


    1. Screen-Shot-2016-06-29-at-14.28.18
Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 8 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum