otclient icon indicating copy to clipboard operation
otclient copied to clipboard

Otclient utf-8 Polish

Open daniofordon opened this issue 4 years ago • 3 comments

Hello. is it possible to add Polish characters to ot client? utf-8?

daniofordon avatar Apr 18 '20 11:04 daniofordon

@diath I have looked a bit into adding unicode support. First step would be fonts. As I understand currently we are using bitmap fonts(https://github.com/edubart/otclient/blob/master/src/framework/graphics/bitmapfont.cpp). Should we update that to handle more than 256 characters or rewrite it to use "normal" fonts? I don't know much about fonts.

I can do some work on unicode support in my spare time for fun if anyone is interested :) https://github.com/edubart/otclient/pull/3

vfjpl avatar Mar 22 '21 19:03 vfjpl

We'd probably have to add TTF support via https://www.freetype.org/ if we wanted to move past bitmap fonts.

diath avatar Mar 23 '21 21:03 diath

At this moment I may suggest (not best - but work) solution with Polish character pseudo-font: https://github.com/otland/otclient/pull/6

EgzoT avatar Apr 11 '21 01:04 EgzoT