aboutsummaryrefslogtreecommitdiff
path: root/docs/api/renderer.lua
AgeCommit message (Collapse)Author
2024-06-25Rebase window creation and management to Lua (#108)Jefferson González
* move window creation and management to Lua (#1751) * remove scaling logic from font code for the time being its been hardcoded to 1 for the non SDL Renderer basewin setup, so nothing is lost for non MacOS users. will be revisited in the future when scaling is improved with SDL3 and moved into scripts. * remove unused window_renderer argument from font functions * move window logic to lua, pass window via argument * rename window creation functions `*_create`, `*_destroy`, add real init * Set active window when processing frame * get size directly from RenWindow, get active window size from renderer * correct reverted draw calls * fix window not reappearing on restart * add simple logic to persist the core window * fix style * add renwindow documentation * make windows hidden by default again * reorder ren_update_rects execution, add comment to note future work * Adapt code that calls system.win functions * Remove scale detection from start.lua * Trimmed spaces from renwindow docs * Enable darkmode on window creation and added min win size --------- Co-authored-by: Jan <sentrycraft123@gmail.com>
2024-02-06Improvements to renderer.font.get_metadata() (#64)Jefferson González
* Besides renderer.font.get_metadata(path) now also supports the font_object:get_metadata() syntax * Added support for handling font groups * Added missing api documentation for the method * Added support for the "sampletext" property
2022-11-30docs api: minor correctionsjgmdev
2022-08-20Added a smoothing and strikethrough option to font loading. (#1087)Aqil Contractor
* Added a smoothing option to font loading. * Added a font strikethrough option to font loading. * Fixed underline applying incorrectly in cases of non-underlined fallback fonts being used. Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2022-06-23renderer fonts: additions and improvementsjgmdev
* Allow passing font options to renderer.font:copy(). * Added renderer.font:get_path() * Reintroduced set_size() for more faster font size changes * Swapped copy wiht set_size on scale plugin for better performance * Use code_font:copy() instead of renderer.font.load() on language_md to properly match user font now that font options are supported on copy. * Added new changes to renderer docs
2022-05-14docs: added font.group to renderer and other adjustmentsjgmdev
2021-11-26Removed docs for get_width_subpixel and subpixel_scale which no longer exist.Joshua Minor
2021-11-05Document bold, italic, and underlined font renderingCukmekerb
2021-07-09Namespaced aliases, virtual classes and added missing returns.jgmdev
2021-06-25Documented with EmmyLua the C API using .lua interface files.jgmdev