Text styling in the plugin GUI

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Text styling in the plugin GUI

Post by berkinet »

I am not sure if this is news. But, I have found that I can add arbitrary fonts and text styles (italic, bold, etc) to plugin GUI labels.

The trick was to use the Character Viewer and select the base character in the main characters window. Then, I chose the stylized character from the Related Characters sub-window.

What is also interesting is that I can add those same characters to a forum post and preview it, but when I try to submit it I get an sql error.

YMMV and Mattt or Jay will probably say this may be broken in a future release :wink:
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Text styling in the plugin GUI

Post by jay (support) »

Any Unicode character that's defined in your Mac's system font should work correctly. However, I don't see how you got a different font...

Note - the system font on Macs will vary at least based on the language used and there are other ways to change the system font. Therefore, depending on those is likely to cause some users problems who use a different font than the one you design with.

Just saying... ;)
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Text styling in the plugin GUI

Post by berkinet »

jay (support) wrote:Any Unicode character that's defined in your Mac's system font should work correctly. However, I don't see how you got a different font...
Surprised me too. I am not sure what defines the contents of the Related Characters pane. But, it looks like accented and stylized versions of the selected character in the selected category (Eg. Latin). So, If I select A, in the Related Character pane I see: aª...Á etc. (every variation on "A" in every latin language).
jay (support) wrote:Note - the system font on Macs will vary at least based on the language used and there are other ways to change the system font. Therefore, depending on those is likely to cause some users problems who use a different font than the one you design with.

Just saying... ;)
I agree. Though, I have now noticed that below the Related Characters pane is another Font Variations pane (scroll down to it). That contains the selected character in every installed font. Selecting something from this section definitely does not work.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Text styling in the plugin GUI

Post by jay (support) »

berkinet wrote:Surprised me too. I am not sure what defines the contents of the Related Characters pane. But, it looks like accented and stylized versions of the selected character in the selected category (Eg. Latin). So, If I select A, in the Related Character pane I see: aª...Á etc. (every variation on "A" in every latin language).
Right - that's not changing the font - it's just Unicode variations on the character that are available in the current font.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Locked

Return to “Extending Indigo with Plugins and Python”