Enable CJK font when using any full/halfwith char (U+FF00 to U+FFEF)
authorWuzzy <Wuzzy2@mail.ru>
Thu, 01 Nov 2018 09:17:51 +0100
changeset 14062 1a85afba813d
parent 14061 7b78c87d80a1
child 14063 fa2ed06c2f55
Enable CJK font when using any full/halfwith char (U+FF00 to U+FFEF)
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Thu Nov 01 08:39:22 2018 +0100
+++ b/hedgewars/uUtils.pas	Thu Nov 01 09:17:51 2018 +0100
@@ -567,7 +567,7 @@
        ((#$AC00  <= u) and (u <= #$D7AF))  or // Hangul Syllables
        ((#$F900  <= u) and (u <= #$FAFF))  or // CJK Compatibility Ideographs
        ((#$FE30  <= u) and (u <= #$FE4F))  or // CJK Compatibility Forms
-       ((#$FF66  <= u) and (u <= #$FF9D)))    // halfwidth katakana
+       ((#$FF00  <= u) and (u <= #$FFEF)))    // half- and fullwidth characters
        then
         begin
             CheckCJKFont:=  THWFont( ord(font) + ((ord(High(THWFont))+1) div 2) );