Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
FontManager.ImageWithSystemSymbolName
Queries SF Symbol font for characters and returns them as image.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Font | 10.5 | Yes | No | No | Yes, macOS only | Yes |
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") ]
Blog Entries
FileMaker Magazin
Release notes
- Version 10.5
- Added FontManager.ImageWithSystemSymbolName function to query images for symbol names.
Created 29th September 2020, last changed 1st October 2020
FontManager.FontFile - FontManager.ListFontFamilies
Feedback: Report problem or ask question.
Links
MBS Xojo blog