fontsupport/fontutils/rom/fonts_variant.iby
branchRCL_3
changeset 106 e4e3998ddda2
parent 99 e871a07c0ce0
child 107 9f95a5546443
equal deleted inserted replaced
100:9dbe1b043bea 106:e4e3998ddda2
    21 #ifdef __HINDI_ROM_CONTENT
    21 #ifdef __HINDI_ROM_CONTENT
    22 // Shaper needs to be included for proper looking Indic
    22 // Shaper needs to be included for proper looking Indic
    23  #include <iculayoutengine.iby>
    23  #include <iculayoutengine.iby>
    24 #endif
    24 #endif
    25 
    25 
    26 // Rasteriser always included
    26 // include ityperast.iby
    27 ECOM_PLUGIN(ityperast.dll, ityperast.RSC)
    27 #include <ityperast.iby>
    28 
    28 
    29 // Include proper font set based on configuration
    29 // Include proper font set based on configuration
    30 #ifdef __CHINESE
    30 #ifdef __CHINESE
    31  #ifdef FF_LINKED_FONTS_CHINESE
       
    32   // Do not include S60 fonts if product fonts flag is set
       
    33   #ifndef FF_PRODUCT_FONTS
       
    34    data=ABI_DIR\BUILD_DIR\s60snr.ttf          resource\Fonts\s60snr.ttf
       
    35    data=ABI_DIR\BUILD_DIR\s60ssb.ttf          resource\Fonts\s60ssb.ttf
       
    36    data=ABI_DIR\BUILD_DIR\s60tsb.ttf          resource\Fonts\s60tsb.ttf
       
    37   #endif
       
    38  #endif
       
    39 
    31 
    40  #ifdef __CHINESE_PRC_FONTS
    32  #ifdef __CHINESE_PRC_FONTS
    41 
    33 
    42   #ifdef FF_CHINESE_FONTS_HIRES
    34   #ifdef FF_CHINESE_FONTS_HIRES
    43 
    35 
    45    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
    37    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
    46    || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
    38    || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
    47    || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
    39    || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
    48    || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
    40    || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
    49    || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
    41    || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
    50    || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3) \
    42    || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3)
    51    || defined (FF_LAYOUT_480_640_TOUCH_VGA4) || defined (FF_LAYOUT_640_480_TOUCH_VGA4)
       
    52 
    43 
    53     // Reso OK, include HiRes font
    44     // Reso OK, include HiRes font
    54     data=ABI_DIR\BUILD_DIR\S60SC_C.ttf        resource\Fonts\S60SC_C.ttf
    45     data=ABI_DIR\BUILD_DIR\S60SC_C.ttf                                               resource\Fonts\S60SC_C.ttf
    55    #else
    46    #else
    56     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
    47     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
    57     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
    48     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
    58    #endif
    49    #endif
    59 
    50 
    60   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
    51   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
    61     data=ABI_DIR\BUILD_DIR\S60SC.ccc          resource\Fonts\S60SC.ccc
    52     data=ABI_DIR\BUILD_DIR\S60SC.ccc                                                 resource\Fonts\S60SC.ccc
    62   #endif
    53   #endif
    63 
    54 
    64  #endif //__CHINESE_PRC_FONTS
    55  #endif //__CHINESE_PRC_FONTS
    65 
    56 
    66  #ifdef __CHINESE_TAIWAN_HK_FONTS
    57  #ifdef __CHINESE_TAIWAN_HK_FONTS
    71    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
    62    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
    72     || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
    63     || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
    73     || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
    64     || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
    74     || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
    65     || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
    75     || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
    66     || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
    76     || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3) \
    67     || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3)
    77     || defined (FF_LAYOUT_480_640_TOUCH_VGA4) || defined (FF_LAYOUT_640_480_TOUCH_VGA4)
       
    78 
    68 
    79     // Reso OK, include HiRes font
    69     // Reso OK, include HiRes font
    80     data=ABI_DIR\BUILD_DIR\S60TCHK_C.ttf      resource\Fonts\S60TCHK_C.ttf
    70     data=ABI_DIR\BUILD_DIR\S60TCHK_C.ttf                                             resource\Fonts\S60TCHK_C.ttf
    81    #else
    71    #else
    82     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
    72     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
    83     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
    73     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
    84    #endif
    74    #endif
    85 
    75 
    86   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
    76   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
    87     data=ABI_DIR\BUILD_DIR\S60TCHK.ccc        resource\Fonts\S60TCHK.ccc
    77     data=ABI_DIR\BUILD_DIR\S60TCHK.ccc                                               resource\Fonts\S60TCHK.ccc
    88   #endif
    78   #endif
    89 
    79 
    90  #endif //__CHINESE_TAIWAN_HK_FONTS
    80  #endif //__CHINESE_TAIWAN_HK_FONTS
    91 
    81 
    92 #elif defined(__JAPANESE)
    82 #elif defined(__JAPANESE)
    93 
    83 
    94  data=ABI_DIR\BUILD_DIR\HeiseiGothS60.ttf     resource\Fonts\HeiseiGothS60.ttf
    84  data=ABI_DIR\BUILD_DIR\HeiseiGothS60.ttf                                            resource\Fonts\HeiseiGothS60.ttf
    95 	
    85 	
    96 #elif defined(__LOCALES_65_IBY__)
    86 #elif defined(__LOCALES_65_IBY__)
    97 
    87 
    98  data=ABI_DIR\BUILD_DIR\Series60Korean.ttf    resource\Fonts\Series60Korean.ttf
    88  data=ABI_DIR\BUILD_DIR\Series60Korean.ttf                                                   resource\Fonts\Series60Korean.ttf
    99 
    89 
   100 #else  // Must be western
    90 #else  // Must be western
   101  // Do not include S60 fonts if product fonts flag is set
    91 #ifndef FF_LINKED_FONTS_CHINESE
   102  #ifndef FF_PRODUCT_FONTS
    92  data=ABI_DIR\BUILD_DIR\s60snr.ttf                                                   resource\Fonts\s60snr.ttf
   103   data=ABI_DIR\BUILD_DIR\s60snr.ttf           resource\Fonts\s60snr.ttf
    93  data=ABI_DIR\BUILD_DIR\s60ssb.ttf                                                   resource\Fonts\s60ssb.ttf
   104   data=ABI_DIR\BUILD_DIR\s60ssb.ttf           resource\Fonts\s60ssb.ttf
    94  data=ABI_DIR\BUILD_DIR\s60tsb.ttf                                                   resource\Fonts\s60tsb.ttf
   105   data=ABI_DIR\BUILD_DIR\s60tsb.ttf           resource\Fonts\s60tsb.ttf
    95 #else
       
    96   #ifdef FF_CHINESE_FONTS_HIRES
       
    97 
       
    98    // HiRes fonts only used in high resolutions
       
    99    #if defined(__LAYOUT_360_640_TOUCH) || defined(__LAYOUT_640_360_TOUCH) \
       
   100     || defined(__LAYOUT_320_480) || defined(__LAYOUT_320_480_TOUCH) \
       
   101     || defined(__LAYOUT_480_320) || defined(__LAYOUT_480_320_TOUCH) \
       
   102     || defined(__LAYOUT_480_640) || defined(__LAYOUT_480_640_TOUCH) \
       
   103     || defined(__LAYOUT_640_480) || defined(__LAYOUT_640_480_TOUCH) \
       
   104     || defined (FF_LAYOUT_480_640_VGA3) || defined (FF_LAYOUT_640_480_VGA3)
       
   105 
       
   106     // Reso OK, include HiRes font
       
   107     data=ABI_DIR\BUILD_DIR\S60SC_C.ttf                                           resource\Fonts\S60SC_C.ttf
       
   108    #else
       
   109     // Invalid configuration: HiRes fonts enabled in low or unknown resolution device
       
   110     #error "Feature configuration error: Chinese HiRes fonts not supported in this resolution!"
       
   111    #endif
       
   112 
       
   113   #else  // Not FF_CHINESE_FONTS_HIRES - use regular stroke
       
   114     data=ABI_DIR\BUILD_DIR\S60SC.ccc                                            resource\Fonts\S60SC.ccc
       
   115   #endif
       
   116 #endif
       
   117 #endif //__CHINESE
       
   118 
       
   119  #ifdef FF_LINKED_FONTS_CHINESE
       
   120  data=ABI_DIR\BUILD_DIR\s60snr.ttf                                                   resource\Fonts\s60snr.ttf
       
   121  data=ABI_DIR\BUILD_DIR\s60ssb.ttf                                                   resource\Fonts\s60ssb.ttf
       
   122  data=ABI_DIR\BUILD_DIR\s60tsb.ttf                                                   resource\Fonts\s60tsb.ttf
   106  #endif
   123  #endif
       
   124 // Digi font available in all variants
       
   125 data=ABI_DIR\BUILD_DIR\S60ZDIGI.ttf                                                  resource\Fonts\S60ZDIGI.ttf
       
   126 
       
   127 
       
   128 // Export typeface xml files
       
   129 #ifdef FF_LINKED_FONTS_CHINESE		// Now this is a global font linking macro
       
   130 #ifdef __CHINESE
       
   131 
       
   132 #if defined(__CHINESE_PRC_FONTS) && defined(__CHINESE_TAIWAN_HK_FONTS)
       
   133 
       
   134 
       
   135 data=ABI_DIR\BUILD_DIR\typefaces_s60_Simplified_Traditional.xml         		resource\Fonts\typefaces.xml           
       
   136 
       
   137 #elif defined(__CHINESE_PRC_FONTS)
       
   138 
       
   139 data=ABI_DIR\BUILD_DIR\typefaces_s60_Simplified_Chinese.xml   				resource\Fonts\typefaces.xml           
       
   140 
       
   141 #elif defined(__CHINESE_TAIWAN_HK_FONTS)
       
   142 
       
   143 data=ABI_DIR\BUILD_DIR\typefaces_s60_Traditional_Chinese.xml        			resource\Fonts\typefaces.xml            
       
   144 
       
   145 #endif //defined(__CHINESE_PRC_FONTS) && defined(__CHINESE_TAIWAN_HK_FONTS)
       
   146 
       
   147 #elif defined(__JAPANESE)
       
   148 
       
   149 data=ABI_DIR\BUILD_DIR\typefaces_s60_Japanese.xml  					resource\Fonts\typefaces.xml   
       
   150 
       
   151 #elif defined(__LOCALES_65_IBY__)
       
   152 
       
   153 data=ABI_DIR\BUILD_DIR\typefaces_s60_Korean.xml                    			resource\Fonts\typefaces.xml   
       
   154 
       
   155 #else  // Must be western
       
   156 
       
   157 data=ABI_DIR\BUILD_DIR\typefaces_s60_Simplified_Chinese.xml   				resource\Fonts\typefaces.xml           
   107 
   158 
   108 #endif //__CHINESE
   159 #endif //__CHINESE
   109 
   160 
   110 // Digi font available in all variants
   161 #else  // Must be western
   111 data=ABI_DIR\BUILD_DIR\S60ZDIGI.ttf           resource\Fonts\S60ZDIGI.ttf
   162 
       
   163 data=ABI_DIR\BUILD_DIR\typefaces_s60_English.xml                    			resource\Fonts\typefaces.xml   
       
   164 
       
   165 #endif //FF_LINKED_FONTS_CHINESE
   112 
   166 
   113 #endif // FONTS_VARIANT_IBY
   167 #endif // FONTS_VARIANT_IBY