ZoriaRPG

Singlechar

Jan 27th, 2017
122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int GetCursorSpacing(int chr){
  2.     //Custom kerning... I should organise these by linguistic frequency for short-circuiting,
  3.     if ( chr == CHAR_QUOTE ) return 2; //Zeelda to be a parser bug. Comparing the buffer character ' ' ' to 'A' returned 5.
  4.    
  5.     if ( chr == 'A' ) return 5; if ( chr == '' ) return 5; if ( chr == 'C' ) return 4; if ( chr == 'D' ) return 5; if ( chr == 'E' ) return 4;
  6.     if ( chr == 'F' ) return 4; if ( chr == 'G' ) return 5; if ( chr == 'H' ) return 4; if ( chr == 'I' ) return 2; if ( chr == 'J' ) return 4;
  7.     if ( chr == 'K' ) return 5; if ( chr == 'L' ) return 4; if ( chr == 'M' ) return 6; if ( chr == 'N' ) return 6; if ( chr == 'O' ) return 5;
  8.     if ( chr == 'P' ) return 5; if ( chr == 'Q' ) return 5; if ( chr == 'R' ) return 5; if ( chr == 'S' ) return 5; if ( chr == 'T' ) return 4;
  9.     if ( chr == 'U' ) return 5; if ( chr == 'V' ) return 6; if ( chr == 'W' ) return 6; if ( chr == 'X' ) return 6; if ( chr == 'Y' ) return 4;
  10.     if ( chr == 'Z' ) return 4;
  11.    
  12.     if ( chr == 'a' ) return 5; if ( chr == 'b' ) return 5; if ( chr == 'c' ) return 4; if ( chr == 'd' ) return 5; if ( chr == 'e' ) return 4;
  13.     if ( chr == 'f' ) return 4; if ( chr == 'g' ) return 5; if ( chr == 'h' ) return 4; if ( chr == 'i' ) return 2; if ( chr == 'j' ) return 4;
  14.     if ( chr == 'k' ) return 5; if ( chr == 'l' ) return 4; if ( chr == 'm' ) return 6; if ( chr == 'n' ) return 6; if ( chr == 'o' ) return 5;
  15.     if ( chr == 'p' ) return 5; if ( chr == 'q' ) return 5; if ( chr == 'r' ) return 5; if ( chr == 's' ) return 5; if ( chr == 't' ) return 4;
  16.     if ( chr == 'u' ) return 5; if ( chr == 'v' ) return 6; if ( chr == 'w' ) return 6; if ( chr == 'x' ) return 4; if ( chr == 'y' ) return 4;
  17.     if ( chr == 'z' ) return 4;
  18.    
  19.     if ( chr == '1' ) return 3; if ( chr == '2' ) return 4; if ( chr == '3' ) return 4; if ( chr == '4' ) return 4; if ( chr == '5' ) return 4;
  20.     if ( chr == '6' ) return 4; if ( chr == '7' ) return 4; if ( chr == '8' ) return 4; if ( chr == '9' ) return 4; if ( chr == '0' ) return 4;
  21.  
  22.    
  23.    
  24.     if ( chr == '!' ) return 2; if ( chr == CHAR_DQUOTE ) return 4; if ( chr == CHAR_POUNDS ) return 5; if ( chr == '%' ) return 4; if ( chr == '^' ) return 4;
  25.     if ( chr == '*' ) return 4; if ( chr == '(' ) return 3; if ( chr == ')' ) return 3; if ( chr == '[' ) return 4;
  26.     if ( chr == ']' ) return 4; if ( chr == '$' ) return 6; if ( chr == '|' ) return 2; if ( chr == CHAR_BSLASH ) return 3;
  27.     if ( chr == ':' ) return 2; if ( chr == ';' ) return 2; if ( chr == ',' ) return 3; if ( chr == '.' ) return 2;
  28.     if ( chr == '@' ) return 5; if ( chr == '#' ) return 6; if ( chr == '<' ) return 5; if ( chr == '>' ) return 5;
  29.     if ( chr == '/' ) return 5; if ( chr == '?' ) return 5; if ( chr == '-' ) return 4; if ( chr == '_' ) return 5;
  30.     if ( chr == '=' ) return 4; if ( chr == '+' ) return 4; if ( chr == '`' ) return 3; if ( chr == '~' ) return 5;
  31.     if ( chr == ' ' ) return 5; if ( chr == '&' ) return 5; if ( chr == '{' ) return 4; if ( chr == '}' ) return 4;
  32. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×