Skip to content

Instantly share code, notes, and snippets.

@phi-gamma
Last active December 16, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phi-gamma/5457042 to your computer and use it in GitHub Desktop.
Save phi-gamma/5457042 to your computer and use it in GitHub Desktop.
patch for otfl-font-nms.lua to not skip libertine mono
--- /tmp/otfl-font-nms.lua 2013-04-25 04:20:05.710574106 +0200
+++ otfl-font-nms.lua 2013-04-25 10:38:06.235616183 +0200
@@ -151,6 +151,11 @@
elseif subfamily == "regular" or
table.contains(synonyms.regular, subfamily) then
found.fallback = face
+ elseif name == fullname then
+ --- guard for Libertine Mono which has
+ --- subtype == “mono”
+ found[1] = face
+ break
end
else
if name == fullname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment