Skip to content

Instantly share code, notes, and snippets.

@compholio
Created February 3, 2015 09:15
Show Gist options
  • Save compholio/f54120f4b304a730c98f to your computer and use it in GitHub Desktop.
Save compholio/f54120f4b304a730c98f to your computer and use it in GitHub Desktop.
Grim Remastered Font Hack
diff --git a/engines/grim/lua_v1.cpp b/engines/grim/lua_v1.cpp
index 01f302e..a507a0b 100644
--- a/engines/grim/lua_v1.cpp
+++ b/engines/grim/lua_v1.cpp
@@ -696,6 +696,9 @@ void Lua_V1::LockFont() {
lua_Object param1 = lua_getparam(1);
if (lua_isstring(param1)) {
const char *fontName = lua_getstring(param1);
+if(!strcmp(fontName, "koloss52.laf") || !strcmp(fontName, "koloss69.laf") || !strcmp(fontName, "koloss100.laf") || !strcmp(fontName, "meredith38.laf") || !strcmp(fontName, "meredith46.laf")) {
+fontName = "treb13bs.laf";
+}
Font *result = g_resourceloader->loadFont(fontName);
if (result) {
lua_pushusertag(result->getId(), MKTAG('F','O','N','T'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment