Permalink
Browse files

TTFFont: fix indentation

  • Loading branch information...
1 parent a51692e commit 554524044e5b4a342a4d1125a6f5d6cb4ea084f1 @bradallred bradallred committed May 26, 2013
Showing with 18 additions and 18 deletions.
  1. +18 −18 gemrb/plugins/TTFImporter/TTFFont.cpp
@@ -40,24 +40,24 @@ const Sprite2D* TTFFont::GetCharSprite(ieWord chr) const
{
#if HAVE_ICONV
if (!utf8) {
- char* oldchar = (char*)&chr;
- ieWord unicodeChr = 0;
- char* newchar = (char*)&unicodeChr;
- size_t in = (multibyte) ? 2 : 1, out = 2;
-
- // TODO: make this work on BE systems
- // TODO: maybe we want to work witn non-unicode fonts?
- iconv_t cd = iconv_open("UTF-16LE", core->TLKEncoding.c_str());
-#if __FreeBSD__
- int ret = iconv(cd, (const char **)&oldchar, &in, &newchar, &out);
-#else
- int ret = iconv(cd, &oldchar, &in, &newchar, &out);
-#endif
- if (ret != GEM_OK) {
- Log(ERROR, "FONT", "iconv error: %d", errno);
- }
- iconv_close(cd);
- chr = unicodeChr;
+ char* oldchar = (char*)&chr;
+ ieWord unicodeChr = 0;
+ char* newchar = (char*)&unicodeChr;
+ size_t in = (multibyte) ? 2 : 1, out = 2;
+
+ // TODO: make this work on BE systems
+ // TODO: maybe we want to work witn non-unicode fonts?
+ iconv_t cd = iconv_open("UTF-16LE", core->TLKEncoding.encoding.c_str());
+ #if __FreeBSD__
+ int ret = iconv(cd, (const char **)&oldchar, &in, &newchar, &out);
+ #else
+ int ret = iconv(cd, &oldchar, &in, &newchar, &out);
+ #endif
+ if (ret != GEM_OK) {
+ Log(ERROR, "FONT", "iconv error: %d", errno);
+ }
+ iconv_close(cd);
+ chr = unicodeChr;
}
#endif
const Holder<Sprite2D>* sprCache = glyphCache->get(chr);

0 comments on commit 5545240

Please sign in to comment.