adjust code to apply the wx coding guidelines
in unicode, we did not need the font encoding parameter