@@ -163,13 +163,13 @@ This file will get generated by your makefile, which will need to be modified to
163163 $(SRCDIR)/myfont2.inc: $(SRCDIR)/myfont2.fnt
164164 convfont -o carray -f $(SRCDIR)/myfont2.fnt $(SRCDIR)/myfont2.inc
165165
166- Finally, somewhere else in your program, you can use :code: `fontlib_SetFont `:
166+ Finally, somewhere else in your program, you can use :code: `fontlib_LoadFont `:
167167
168168.. code-block :: c
169169
170170 void main() {
171171 . . .
172- fontlib_SetFont (my_font_1, 0);
172+ fontlib_LoadFont (my_font_1, 0);
173173 . . .
174174 }
175175
@@ -211,7 +211,7 @@ Create a new folder, place your :code:`.fnt` files in it, and then create a :cod
211211 Using Font Packs
212212----------------
213213
214- While using an embedded font is easy—just call :code: `fontlib_SetFont ` directly on the pointer to the font data—,
214+ While using an embedded font is easy—just call :code: `fontlib_LoadFont ` directly on the pointer to the font data—,
215215using a font pack is a bit more involved.
216216
217217**WARNING: FontLibC caches a pointer to the font's data when you use ** :code: `SetFont `.
@@ -243,7 +243,7 @@ If you require a specific font pack with a specific appvar name, then opening a
243243 return;
244244 }
245245 /* Use font for whatever */
246- fontlib_SetFont (my_font, 0);
246+ fontlib_LoadFont (my_font, 0);
247247 . . .
248248 }
249249
@@ -299,7 +299,7 @@ for a font pack by typeface name:
299299 Note that a direct pointer to the name is returned, which may be archived,
300300 so you cannot write to the string. */
301301 if (!strcmp(typeface_name, "My Font")) {
302- fontlib_SetFont (fontlib_GetFontByIndex(var_name, 0), 0);
302+ fontlib_LoadFont (fontlib_GetFontByIndex(var_name, 0), 0);
303303 break;
304304 }
305305 }
@@ -346,7 +346,7 @@ The :code:`GetFontByStyle` routines help you automatically select a font given a
346346 /* Get a 9 or 10 pixel tall bold, serif font that isn't monospaced and isn't italic. */
347347 font = fontlib_GetFontByStyleRaw(font_pack, 9, 10, FONTLIB_BOLD, FONTLIB_BOLD, FONTLIB_SERIF, FONTLIB_MONOSPACED | FONTLIB_ITALIC);
348348 if (font)
349- fontlib_SetFont (font, 0);
349+ fontlib_LoadFont (font, 0);
350350
351351 API Usage Notes
352352---------------
@@ -404,9 +404,9 @@ on normal wrapping with :code:`fontlib_SetNewlineOptions`.
404404
405405Additional blank vertical space around text can improve readability in large blocks of text.
406406:code: `fontlib_SetLineSpacing ` allows you to set this behavior.
407- Fonts may specify default additional spacing that is automatically applied when calling :code: `fontlib_SetFont `.
407+ Fonts may specify default additional spacing that is automatically applied when calling :code: `fontlib_LoadFont `.
408408In GUIs and games where the benefits of legibility are outweighed by more aggressive use of vertical space,
409- you can force the default spacing to zero after using :code: `fontlib_SetFont ` with :code: `fontlib_SetLineSpacing `.
409+ you can force the default spacing to zero after using :code: `fontlib_LoadFont ` with :code: `fontlib_SetLineSpacing `.
410410
411411API Documentation
412412-----------------
0 commit comments