Font madness


#1

image

Anyone any bright ideas why this (the funny writing) might happen? I think we are using a TextLayout here to draw instead of the regular drawText we use in the rest of the plugin. The font is an embedded one in the plugin. It only occurs sometimes…


#2

Is this on Mac? I’ve been seeing something similar for the last 6 months or so. Unfortunately I don’t know the cause. Sometimes my fonts change and then jump back to normal on the next repaint.


#3

Yes Mac. Stays like that till i restart the plugin…!


#4

Yes, this has been driving me mad for 6 months too. Seems to either get scrambled like that or display the wrong font.

As @G-Mon says though, it seems to go away after a while. Maybe something we’re doing is refrtthe cache…


#5

Does it affect all fonts in all sizes for you… it only seems to affect our title text, the rest of the labels are all the same!!


#6

This issue crops up from time to time on our products too, and on seemingly random users machines! I thought I was going crazy :slight_smile: Mostly in the text of the tab names in our plugin’s preference window, everything else was fine. In our case, removing any setDefaultSansSerifTypeface calls to our custom LookAndFeel fixed it. But then we have to add more code to manually set fonts of different Components…