h6. [[FontManager]] h6(. » [[FontManager SWI Calls|SWI Calls]] h6((. » [[Font_ListFonts]] h6(((. » Font_ListFonts (Basic) h2. Font_ListFonts h5. (SWI &400A7) |_<^{width:3em}. Entry | | |<^. R1|<^. Pointer to buffer for [[Font Identifier String|identifier]], or 0 to find required size| |<^. R2|<^. Counter and flags | |<^. R3|<^. Size of buffer in R1 | |<^. R4|<^. Pointer to buffer for font name, or 0 to find required size | |<^. R5|<^. Size of buffer in R4 | |_<^{width:3em}. Exit || |<^. R2 |<^. New count, or -1 if no more | |<^. R3 |<^. Required size of buffer in R1 if R1 = 0, otherwise length of data placed in buffer | |<^. R5 |<^. Required size of buffer in R4 if R4 = 0, otherwise length of data placed in buffer | h4. Flags values |_<^{width:3em}. Bit |_. Meaning | |<^. 0-15|<^. Counter, or 0 for first call | |<^. 16|<^. Return [[Font Identifier String|font identifier]] in R1 | |<^. 17|<^. Return local name in R4 | |<^. 18|<^. Terminate with CR rather than 0 | |<^. 22|<^. Return list of encodings rather than fonts | |<^. 23-31|<^. Reserved; must be 0 | h4. Use This call returns, one at a time, the fonts or encodings found with a given path. h4. Notes Names are returned alphabetically sorted. For this form of the call, only bits 16-18 and bit 22 of the flags in R2 should be used. All other bits must be clear. Do not alter R2 between calls for finding required memory and finding actual data. If R2 = -1 on exit, then all fonts have been found and returned data is invalid. h4. See also * [[Font_ListFonts (Menu)]]