This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |