mirror of
https://github.com/zeldaret/ss
synced 2026-07-31 16:07:06 -04:00
nw4r ut almost matching
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <nw4r/ut.h>
|
||||
|
||||
namespace nw4r {
|
||||
namespace ut {
|
||||
|
||||
void Font::InitReaderFunc(FontEncoding encode) {
|
||||
switch (encode) {
|
||||
case FONT_ENCODE_UTF8:
|
||||
mReadFunc = &CharStrmReader::ReadNextCharUTF8;
|
||||
break;
|
||||
case FONT_ENCODE_UTF16:
|
||||
mReadFunc = &CharStrmReader::ReadNextCharUTF16;
|
||||
break;
|
||||
case FONT_ENCODE_SJIS:
|
||||
mReadFunc = &CharStrmReader::ReadNextCharSJIS;
|
||||
break;
|
||||
case FONT_ENCODE_CP1252:
|
||||
default:
|
||||
mReadFunc = &CharStrmReader::ReadNextCharCP1252;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ut
|
||||
} // namespace nw4r
|
||||
|
||||
Reference in New Issue
Block a user