Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

FontManager.ImageWithSystemSymbolName

Queries SF Symbol font for characters and returns them as image.

Component Version macOS Windows Linux Server iOS SDK
Font 10.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "FontManager.ImageWithSystemSymbolName"; Name { ; Width; Height; ImageType; FileName } )   More

Parameters

Parameter Description Example Flags
Name The name of the symbol "icloud"
Width The width to use. 200 Optional
Height The image height to use. 200 Optional
ImageType The type of image to return.
Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG" Optional
FileName The filename to use for the picture.
Default is "image" with the extension matching the image type.
"test.jpg" Optional

Result

Returns container or error.

Description

Queries SF Symbol font for characters and returns them as image.
This function needs macOS 11.0 or iOS 14.
On iOS ignores size and returns font with native size.
On macOS if either height or width is empty/zero, we calculate the other value with proportional scaling.

See website for list of symbols:
https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/

Examples

Query picture with 512 pixel width:

Set Field [ Test::Image ; MBS("FontManager.ImageWithSystemSymbolName"; "icloud"; 512; ""; "png"; "test.png") ]

Release notes

Blog Entries

This function checks for a license.

Created 29th September 2020, last changed 1st October 2020


FontManager.FontFile - FontManager.ListFontFamilies