The fontcharacters( function returns a string (text) containing all of the characters supported by the specified font.
This function has one parameter:
font – name of the font.
This function returns a string (text) containing all of the characters supported by the specified font.
fontcharacters("Helvetica") contains "A" ☞ TRUE fontcharacters("FontAwesome") contains "A" ☞ FALSE
Note: You may wonder why this information isn’t returned by the fontinfo( function. It turns out that generating this string is somewhat time consuming. Since this list of characters is rarely needed, this operation was put into a separate function so that it wouldn’t affect the performance of the fontinfo( function. If you need to use this sequence of characters multiple times, you should copy it into a variable and use that rather than invoking the function over and over again (especially in a loop).
no font named: – The specified font is not installed on your system.
|10.0||New||New in this version.|