-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ugly icon for Modelica.SIunits #2131
Comments
@DagBruck Text in icons is problematic since,
|
Given how much time we've spent recently on how to render ellipses, |
@henrikt-ma You might be interested to follow the modelica-3rdparty/Modelica_DeviceDrivers#186 thread. |
Here's a proposal for a new SIunits package icon. Feel free to use it or modify it to your liking.
|
@henrikt-ma I think the problem is not just how to render text (all tools I know how deal with absolute font sizes very differently, but render fine with auto-sized text fitting a bounding box), but also specifying when to render text. Most tools tend to remove rendering of text in the package browser since text on ports, etc. tends to be small and irrelevant. This makes using polygons for package icons a reasonable workaround until it's specified in a good way when to render text... @d-hedberg I think that icon is a huge improvement over the current one in MSL. It's 1652 characters vs. ~1067 for the existing one, which is the only drawback. |
1.65 kB vs 1.06 kB .. I think we can cope with this "space wasting" improvement 😃 |
@d-hedberg Thanks for the improved Icon graphics. Resolved in master and maint/3.2.2 branches. |
Reported by dag on 12 Dec 2016 14:05 UTC
Modelica.SIunits has an icon which uses the unit "kg" (kilogram). That is ok. The problem is that the letters "kg" are drawn using polygons instead of text. Proposal: use Text(...) annotation instead.
Migrated-From: https://trac.modelica.org/Modelica/ticket/2131
The text was updated successfully, but these errors were encountered: