Customization
Custom Keymaps
Section titled “Custom Keymaps”If you want to make custom keymaps, you can create keymap.json at the user configuration path:
/Users/<user>/Library/Application Support/StarUMLfor Mac OS.C:\Users\<user>\AppData\Roaming\StarUMLfor Windows.~/.config/StarUMLfor Linux.
You can get how to edit the custom keymap file (keymap.json) at Keymaps.
Here is an example:
{ "cmdctrl-alt-g": "view:show-grid"}This entry changes the key binding of View > Show Grid (Command ID is view:show-grid) to Ctrl+Alt+G (Cmd+Option+G in MacOS).
If you want to know all command IDs, enter the following expression at Script Console (View > Script Console).
app.commands.getIds()Custom Fonts
Section titled “Custom Fonts”If you want to use custom fonts, you can add a font folder in the custom fonts folder:
/Users/<user>/Library/Application Support/StarUML/fontsfor Mac OS.C:\Users\<user>\AppData\Roaming\StarUML\fontsfor Windows.~/.config/StarUML/fontsfor Linux.
- Create a font folder (e.g.
my-font) at the custom fonts folder. - Place a font description file (
font.json) and the TrueType font files.ttfin the font folder.
The font description file looks as below:
[ { "name" : "MyFont", "regular" : "MyFont-Regular.ttf", "italic" : "MyFont-Italic.ttf", "bold" : "MyFont-Bold.ttf", "boldItalic" : "MyFont-BoldItalic.ttf" }]StarUML should be restarted to recognize the added custom fonts.