Skip to content

Add fontlib_LoadFont to replace fontlib_SetFont#808

Merged
mateoconlechuga merged 2 commits into
masterfrom
fontlib_loadfont
Jun 27, 2026
Merged

Add fontlib_LoadFont to replace fontlib_SetFont#808
mateoconlechuga merged 2 commits into
masterfrom
fontlib_loadfont

Conversation

@ZERICO2005

@ZERICO2005 ZERICO2005 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Addresses #754

  • Adds fontlib_LoadFont which correctly handles flags when loading a font.
  • Changed all occurances of fontlib_SetFont with fontlib_LoadFont in the documentation.
  • Developers will get a deprecation warning when compiling code that uses fontlib_SetFont, and are encouraged to replace fontlib_SetFont with fontlib_LoadFont.
  • fontlib_SetFont(font, flags) will be equivalent to calling fontlib_LoadFont(font, FONTLIB_IGNORE_LINE_SPACING) for backwards compatibility purposes.

@ZERICO2005 ZERICO2005 added the lib/fontlibc Issues related to the font rendering library label Jun 21, 2026
@ZERICO2005 ZERICO2005 requested a review from drdnar June 21, 2026 23:01
Comment thread src/fontlibc/fontlibc.h
@mateoconlechuga mateoconlechuga marked this pull request as ready for review June 27, 2026 17:54
@mateoconlechuga mateoconlechuga merged commit a431916 into master Jun 27, 2026
9 checks passed
@mateoconlechuga mateoconlechuga deleted the fontlib_loadfont branch June 27, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib/fontlibc Issues related to the font rendering library

Development

Successfully merging this pull request may close these issues.

2 participants