RafalBuchner / StemThickness

Apache License 2.0
29 stars 13 forks source link

text disappears at high zoom rates #1

Open NicholasSloan opened 8 years ago

NicholasSloan commented 8 years ago

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

RafalBuchner commented 8 years ago

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 notifications@github.com:

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 .

NicholasSloan commented 8 years ago

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 commented 4 years ago

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 commented 4 years ago

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