Hi, below is a short patch for \definefontfamily. function selectfont.registerfiles(index) local data = data[index] local colon = splitat(":",true) for alternative, _ in next, alternatives do local arguments = data.alternatives[alternative] if arguments and arguments ~= "" then local entries = settings_to_array(arguments) for index, entry in next, entries do method, argument = lpegmatch(colon,entry) if not argument then argument = method method = "name" end if #entries == 1 and method == "features" then extras["features"](data,alternative,argument) methods[v_default](data,alternative) else (extras[method] or methods[method] or methods[v_default])(data,alternative,argument) end end else methods[v_default](data,alternative) end end end Wolfgang
participants (1)
-
Wolfgang Schuster