StemThickness icon indicating copy to clipboard operation
StemThickness copied to clipboard

text disappears at high zoom rates

Open NicholasSloan opened this issue 8 years ago • 4 comments

Hi Rafal, a really useful plugin, thank you. I have two issues however

  1. At very high zoom rates in Glyphs, the text in the rounded box disappears, but in a slightly irregular and unpredictable fashion: it may be visible for vertical dimensions and invisible for horizontal..

  2. I find the dimensions a bit difficult to read on my screen. Is there any way I can tweak the code to increase the font size?

Thanks, Nick

NicholasSloan avatar Jul 28 '16 04:07 NicholasSloan

Hi Nick, I'm happy, that the plugin is useful sorry that I didn't reply: RIght now I'm on holidays with poor internet connection.

  1. The cause of that is beyond my plugin. I'm working on that, but it is the most problematic part of my plugin. 2)Sure, following lines are printing values: https://github.com/RafalBuchner/StemThickness/blob/master/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py#L348 https://github.com/RafalBuchner/StemThickness/blob/master/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py#L386 definition of the method looks like this:

def drawRoundedRectangleForStringAtPosition(self, thisString, center, fontsize, color=(0, .3, .8, .65) ):

so if you will increase value 9, the text should be bigger

Regards, Rafał

2016-07-28 6:58 GMT+02:00 NicholasSloan [email protected]:

Hi Rafal, a really useful plugin, thank you. I have two issues however

  1. At very high zoom rates in Glyphs, the text in the rounded box disappears, but in a slightly irregular and unpredictable fashion: it may be visible for vertical dimensions and invisible for horizontal..

  2. I find the dimensions a bit difficult to read on my screen. Is there any way I can tweak the code to increase the font size?

Thanks, Nick

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RafalBuchner/StemThickness/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AR3EG1_x9z4zyBh0wvEVZxKLntylFbQ0ks5qaDbqgaJpZM4JW3gO .

RafalBuchner avatar Jul 30 '16 10:07 RafalBuchner

Many thanks Rafal, that font size tweak doubles the usability for me. The other issue is not such a big deal. The way the text jumps around at high zoom, it seems as though it is conforming to unit grid spacing, but irrespective of whether or not the Glyphs project has sub-unit resolution or not. The surrounding box moves smoothly with the cursor, but the text jumps from unit to unit on the grid. Good luck!

NicholasSloan avatar Jul 30 '16 12:07 NicholasSloan

Hi Rafael, Two years ago you sent me a useful tip for making the font size larger in your ShowStemThickness plugin.

2)Sure, following lines are printing values: https://github.com/RafalBuchner/StemThickness/blob/master/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py#L348 https://github.com/RafalBuchner/StemThickness/blob/master/StemThickness.glyphsReporter/Contents/Resources/StemThickness.py#L386 definition of the method looks like this:

def drawRoundedRectangleForStringAtPosition(self, thisString, center, fontsize, color=(0, .3, .8, .65) ):

so if you will increase value 9, the text should be bigger

Following various updates I have tried this again (with lines 310 and 328 of Plugin.py in version 1.2.2) I have uninstalled via the Plugin Manager, downloaded a zip from your Git page and installed that manually in App Support>Glyphs>Plugins. I have relaunched Glyphs. But whatever I do, though the plugin works fine, the text size is unchanged —just hovering around the edge of visibility for me.

Anything more I could do? Many thanks, Nick

NicholasSloan avatar Sep 17 '19 17:09 NicholasSloan

Bumping this question Rafael: any way to hack font size in version 1.3? Is it even possible to edit the script any more?

NicholasSloan avatar Jan 24 '20 22:01 NicholasSloan