fontsupport/fontutils/rom/fonts_variant.iby
changeset 0 05e9090e2422
child 1 ba33815114d6
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef FONTS_VARIANT_IBY
       
    19 #define FONTS_VARIANT_IBY
       
    20 
       
    21 #ifdef __HINDI_ROM_CONTENT
       
    22 // Shaper needs to be included for proper looking Indic
       
    23  #include <iculayoutengine.iby>
       
    24 #endif
       
    25 
       
    26 // Rasteriser always included
       
    27 ECOM_PLUGIN(ityperast.dll, ityperast.RSC)
       
    28 
       
    29 // Include proper font set based on configuration
       
    30 #ifdef __CHINESE
       
    31  #ifdef FF_LINKED_FONTS_CHINESE
       
    32  data=ABI_DIR\BUILD_DIR\s60snr.ttf                                                   resource\Fonts\s60snr.ttf
       
    33  data=ABI_DIR\BUILD_DIR\s60ssb.ttf                                                   resource\Fonts\s60ssb.ttf
       
    34  data=ABI_DIR\BUILD_DIR\s60tsb.ttf                                                   resource\Fonts\s60tsb.ttf
       
    35  #endif
       
    36 
       
    37  #ifdef __CHINESE_PRC_FONTS
       
    38 
       
    39   #ifdef FF_CHINESE_FONTS_HIRES
       
    40 
       
    41    // HiRes fonts only used in high resolutions
       
    42    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
       
    43    || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
       
    44    || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
       
    45    || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
       
    46    || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
       
    47    || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3)
       
    48 
       
    49     // Reso OK, include HiRes font
       
    50     data=ABI_DIR\BUILD_DIR\S60SC_C.ttf                                               resource\Fonts\S60SC_C.ttf
       
    51    #else
       
    52     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
       
    53     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
       
    54    #endif
       
    55 
       
    56   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
       
    57     data=ABI_DIR\BUILD_DIR\S60SC.ccc                                                 resource\Fonts\S60SC.ccc
       
    58   #endif
       
    59 
       
    60  #endif //__CHINESE_PRC_FONTS
       
    61 
       
    62  #ifdef __CHINESE_TAIWAN_HK_FONTS
       
    63 
       
    64   #ifdef FF_CHINESE_FONTS_HIRES
       
    65 
       
    66    // HiRes fonts only used in high resolutions
       
    67    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
       
    68     || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
       
    69     || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
       
    70     || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
       
    71     || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
       
    72     || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3)
       
    73 
       
    74     // Reso OK, include HiRes font
       
    75     data=ABI_DIR\BUILD_DIR\S60TCHK_C.ttf                                             resource\Fonts\S60TCHK_C.ttf
       
    76    #else
       
    77     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
       
    78     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
       
    79    #endif
       
    80 
       
    81   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
       
    82     data=ABI_DIR\BUILD_DIR\S60TCHK.ccc                                               resource\Fonts\S60TCHK.ccc
       
    83   #endif
       
    84 
       
    85  #endif //__CHINESE_TAIWAN_HK_FONTS
       
    86 
       
    87 #elif defined(__JAPANESE)
       
    88 
       
    89  data=ABI_DIR\BUILD_DIR\HeiseiGothS60.ttf                                            resource\Fonts\HeiseiGothS60.ttf
       
    90 	
       
    91 #elif defined(__LOCALES_65_IBY__)
       
    92 
       
    93  data=ABI_DIR\BUILD_DIR\Series60Korean.ttf                                                   resource\Fonts\Series60Korean.ttf
       
    94 
       
    95 #else  // Must be western
       
    96 
       
    97  data=ABI_DIR\BUILD_DIR\s60snr.ttf                                                   resource\Fonts\s60snr.ttf
       
    98  data=ABI_DIR\BUILD_DIR\s60ssb.ttf                                                   resource\Fonts\s60ssb.ttf
       
    99  data=ABI_DIR\BUILD_DIR\s60tsb.ttf                                                   resource\Fonts\s60tsb.ttf
       
   100 
       
   101 #endif //__CHINESE
       
   102 
       
   103 // Digi font available in all variants
       
   104 data=ABI_DIR\BUILD_DIR\S60ZDIGI.ttf                                                  resource\Fonts\S60ZDIGI.ttf
       
   105 
       
   106 #endif // FONTS_VARIANT_IBY