hello,
I'm trying to modify a macro (replacing a selected text with a specified font) with a more universal version - replacing with last selected font. Is such trick possible?
thank you,
m.
There is no API to get the most recently used font.
For CorelDRAW 2022 the list is stored in the registry here:
Computer\HKEY_CURRENT_USER\SOFTWARE\Corel\CorelDRAW\24.0\Draw\Application Preferences\AssetListOptions\Groups\FontList.TextProperties
Then look at MRUList
You will see some JSON for the list there. Here is a quick example:
[ { "AssetIDUIKey": "eFont-81", "Family": "Ink Free", "SubFamily": "Regular", "Version": "Version 1.01", "Tech": 4, "Weight": 400, "Width": 5, "Italic": false, "Manufacturer": "MONO" }, { "AssetIDUIKey": "eFont-80", "Family": "Impact", "SubFamily": "Regular", "Version": "Version 5.11", "Tech": 4, "Weight": 400, "Width": 3, "Italic": false, "Manufacturer": "MONO" } ]
Hope that helps,
-Shelby