Ensure font allocation failure if tw/th not initialized
Mark various font functions static