Tilefont (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "<span {{code}}>'''tilefont''' <tilenum> { [...] }</span> Defines a set of characters for the font of the specific tilenum. This is similar to how some hard-coded fonts have a..."
 
Fox (talk | contribs)
 
Line 75: Line 75:
   chr "Z" 2879
   chr "Z" 2879
   chr "[" 2880
   chr "[" 2880
   chr "\" 2881
   // chr "\" 2881
   chr "]" 2882
   chr "]" 2882
   chr "^" 2883
   chr "^" 2883

Latest revision as of 09:14, 28 May 2020

tilefont <tilenum> { [...] }

Defines a set of characters for the font of the specific tilenum. This is similar to how some hard-coded fonts have a unique set.

This is the only way to enable characters from some languages.

Tokens

chr <character> <tilenum>

Defines a tilenum to be displayed for a specific character.

Examples

The following example will make BIGALPHANUM display STARTALPHANUM characters:

tilefont 2940
{
  chr "!" 2822
  // chr """ 2823
  chr "#" 2824
  chr "$" 2825
  chr "%" 2826
  chr "&" 2827
  chr "'" 2828
  chr "(" 2829
  chr ")" 2830
  chr "*" 2831
  chr "+" 2832
  chr "," 2833
  chr "-" 2834
  chr "." 2835
  chr "/" 2836
  chr "0" 2837
  chr "1" 2838
  chr "2" 2839
  chr "3" 2840
  chr "4" 2841
  chr "5" 2842
  chr "6" 2843
  chr "7" 2844
  chr "8" 2845
  chr "9" 2846
  chr ":" 2847
  chr ";" 2848
  chr "<" 2849
  chr "=" 2850
  chr ">" 2851
  chr "?" 2852
  chr "@" 2853
  chr "A" 2854
  chr "B" 2855
  chr "C" 2856
  chr "D" 2857
  chr "E" 2858
  chr "F" 2859
  chr "G" 2860
  chr "H" 2861
  chr "I" 2862
  chr "J" 2863
  chr "K" 2864
  chr "L" 2865
  chr "M" 2866
  chr "N" 2867
  chr "O" 2868
  chr "P" 2869
  chr "Q" 2870
  chr "R" 2871
  chr "S" 2872
  chr "T" 2873
  chr "U" 2874
  chr "V" 2875
  chr "W" 2876
  chr "X" 2877
  chr "Y" 2878
  chr "Z" 2879
  chr "[" 2880
  // chr "\" 2881
  chr "]" 2882
  chr "^" 2883
  chr "_" 2884
  chr "`" 2885
  chr "a" 2886
  chr "b" 2887
  chr "c" 2888
  chr "d" 2889
  chr "e" 2890
  chr "f" 2891
  chr "g" 2892
  chr "h" 2893
  chr "i" 2894
  chr "j" 2895
  chr "k" 2896
  chr "l" 2897
  chr "m" 2898
  chr "n" 2899
  chr "o" 2900
  chr "p" 2901
  chr "q" 2902
  chr "r" 2903
  chr "s" 2904
  chr "t" 2905
  chr "u" 2906
  chr "v" 2907
  chr "w" 2908
  chr "x" 2909
  chr "y" 2910
  chr "z" 2911
  chr "{" 2912
  chr "|" 2913
  chr "}" 2914
  chr "~" 2915
}