Skip to content

Instantly share code, notes, and snippets.

local obs = obslua
local data = {}
function source_get_font_face(source)
local id = obs.obs_source_get_unversioned_id(source)
if id == 'text_gdiplus' or id == 'text_ft2_source' then
local data = obs.obs_source_get_settings(source)
local font_face = data_get_font_face(data)
obs.obs_data_release(data)
@kalimag
kalimag / BizHawk.lua
Created August 21, 2023 09:36
BizHawk API LuaCATS/LuaLS definitions
--Generated with BizHawk 2.9.2
---@meta _
---@class color : userdata
---A color in one of the following formats:
--- - Number in the format `0xAARRGGBB`
--- - String in the format `"#RRGGBB"` or `"#AARRGGBB"`
--- - A CSS3/X11 color name e.g. `"blue"`, `"palegoldenrod"`
--- - Color created with `forms.createcolor`