archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
916 stars 267 forks source link

Draw figure's icon using an icon font instead of code #527

Open jbsarrodie opened 4 years ago

jbsarrodie commented 4 years ago

See #522

As of now, figure's icon is drawn using custom code. Another option would be to use an icon font. This would have several advantages:

herve91 commented 4 years ago

Hi JB,

This would simplify a lot my specialization plugin if Archi could natively replace figure's icons by custom ones :-)

Best regards Hervé

jbsarrodie commented 4 years ago

This would simplify a lot my specialization plugin if Archi could natively replace figure's icons by custom ones :-)

Yes. In fact my long term goal is to add native support for language customization in Archi. So this is a first step.

herve91 commented 4 years ago

Did you have a chance to have a look to my alpha version of my specialization plugin v2 ?

Unluckily, I lack time for this plugin but the direction I took is to define specializations at the model level, a specialization being composed of a an image, graphical configuration (color, line size, ...), and a set of properties.

Then Archimate concept by Archimate concept, add the ability to assign a specialization which automatically sets the image, the graphical configuration and the properties.

If this is close to what you've got in mind and if Archi implements this natively, then my specialization plugins will not be required anymore :-)

jbsarrodie commented 4 years ago

Yes, that's what I have in mind.

herve91 commented 4 years ago

Great :-)

Phillipus commented 4 years ago

The thing with setting icons and images is making sure they are bundled with the *.archimate file.

jbsarrodie commented 4 years ago

The thing with setting icons and images is making sure they are bundled with the *.archimate file.

Not fully true. If we provide an icon font (containing standard ArchiMate icons and a good set of other icons) with Archi, then we don't have to bundle icons with the .archimate file. Of course, if we want to support real images, then they have to be bundles. But in this case, we can already do it (we have images in canvas and Hervé's plugin uses this trick to store custom images).

jbsarrodie commented 4 years ago

Yes, that's what I have in mind.

And BTW, don't expect it to be implemented anytime soon. There is a lot of discussions and design decisions involved prior any code.

dereksz commented 8 months ago

FYI: Both Font Awsome and Nerd Fonts (https://www.nerdfonts.com/) may be useful references / starting points for custom fonts.