added measureText, switch opentype require