Changeset 290
- Timestamp:
- Sep 5, 2005, 8:20:43 PM (20 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/winh.c
r276 r290 2914 2914 * 2915 2915 *@@added V0.9.0 [umoeller] 2916 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655 2916 2917 */ 2917 2918 … … 2924 2925 { 2925 2926 if (doshIsWarp4()) 2926 strhncpy0(szFont, "9.WarpSans", sizeof(szFont)); 2927 if(nlsDBCS()) 2928 strhncpy0(szFont, "9.WarpSans Combined", sizeof(szFont)); 2929 else 2930 strhncpy0(szFont, "9.WarpSans", sizeof(szFont)); 2927 2931 else 2928 strhncpy0(szFont, "8.Helv", sizeof(szFont)); 2932 if(nlsDBCS()) 2933 strhncpy0(szFont, "8.Helv Combined", sizeof(szFont)); 2934 else 2935 strhncpy0(szFont, "8.Helv", sizeof(szFont)); 2929 2936 } 2930 2937 else … … 2949 2956 * 2950 2957 *@@added V0.9.0 [umoeller] 2958 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655 2951 2959 */ 2952 2960 … … 2965 2973 { 2966 2974 if (doshIsWarp4()) 2967 strhncpy0(szFont, "9.WarpSans", sizeof(szFont)); 2975 if(nlsDBCS()) 2976 strhncpy0(szFont, "9.WarpSans Combined", sizeof(szFont)); 2977 else 2978 strhncpy0(szFont, "9.WarpSans", sizeof(szFont)); 2968 2979 else 2969 strhncpy0(szFont, "8.Helv", sizeof(szFont)); 2980 if(nlsDBCS()) 2981 strhncpy0(szFont, "8.Helv Combined", sizeof(szFont)); 2982 else 2983 strhncpy0(szFont, "8.Helv", sizeof(szFont)); 2970 2984 } 2971 2985 else -
trunk/src/helpers/winh.c
r276 r290 3080 3080 * 3081 3081 *@@added V1.0.1 (2002-11-30) [umoeller] 3082 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655 3082 3083 */ 3083 3084 … … 3085 3086 { 3086 3087 if (doshIsWarp4()) 3087 return "9.WarpSans"; 3088 3089 return "8.Helv"; 3088 if(nlsDBCS()) 3089 return "9.WarpSans Combined"; 3090 else 3091 return "9.WarpSans"; 3092 else 3093 if(nlsDBCS()) 3094 return "8.Helv Combined"; 3095 else 3096 return "8.Helv"; 3090 3097 } 3091 3098 … … 3153 3160 * 3154 3161 *@@added V0.9.0 [umoeller] 3162 *@@changed V1.0.4 (2005-09-02) [bvl]: Return 'Combined' fonts on DBCS systems to show DBCS characters properly @@fixes 655 3155 3163 */ 3156 3164 … … 3163 3171 HENUM henum; 3164 3172 HWND hwndItem; 3165 CHAR szFont[256];3166 3173 ULONG cbFont; 3167 3174 3168 if (pcszFont == NULL) 3169 { 3170 if (doshIsWarp4()) 3171 strhncpy0(szFont, "9.WarpSans", sizeof(szFont)); 3172 else 3173 strhncpy0(szFont, "8.Helv", sizeof(szFont)); 3174 } 3175 else 3176 strhncpy0(szFont, pcszFont, sizeof(szFont)); 3177 3178 cbFont = strlen(szFont) + 1; 3179 3175 if (!pcszFont) 3176 pcszFont = winhQueryDefaultFont(); 3177 3178 cbFont = strlen(pcszFont) + 1; 3180 3179 // set font for all the dialog controls 3181 3180 henum = WinBeginEnumWindows(hwndDlg); … … 3189 3188 PP_FONTNAMESIZE, 3190 3189 cbFont, 3191 szFont))3190 (PSZ)pcszFont)) 3192 3191 // successful: 3193 3192 ulrc++;
Note:
See TracChangeset
for help on using the changeset viewer.