Spacing Coefficient

Hi,

I was wondering if there is a way to use a coefficient as a variable when doing Sidebearing arithmetics, and if so using decimal numbers as well?

for instance:
RSB=(variable)*4
LSB=(variable)*2

I looked in the mekkablue scripts to see if there is something which comes close but couldn’t find anything.

Thanks!

What are you intending to use this for?

If you want to do this, I would suggest adding a dummy glyph (non-exporting, you can even name it variable), setting its sidebearings to what you want. Then use it in your metrics keys.

Using metrics arithmetics excessively is not a good idea, though, generally.

As Sebastian said. Use metrics keys only for similar shapes. And use CSS calculations only for small adjustment (e.g. if the D is a bit flatter than the O you can do: =O-5). Never do =H*0.6.

Both your points are valid and I wouldn’t space it this way normally.
I’m trying to apply the LS Cadencer principle manually (since I can’t get the plugin working on my computer).

Hence my question about using a decimal number as a variable. Which except if I’m mistaken, is what the plugin does, then multiplied by coefficients stored in a table.

I fixed the plugin a couple days ago. Can you reinstall it and try again?

The version I was given by Lukas was last modified on 4th november. Tried every possible way to get it working (reinstall modules, reinstall Glyphs), didn’t work and I always get the following error:

A plugin caused a crash

The Plugin LSCadencerTool.glyphsPlugin has caused a crash. Please update it by opening the Plugin Manager or re-downloading it from the original source.

Details:
Traceback (most recent call last):

File “GlyphsApp/GlyphsApp/plugins.py”, line 875, in loadPlugin

File “plugin.py”, line 36, in start
newMenuItem = NSMenuItem(self.name, self.showWindow)
^^^^^^^^^^^^^^^

AttributeError: ‘LSCadencerTool’ object has no attribute ‘showWindow’

App:3.2.3-3260 Plugin:6.4-7 System:15.1.0

I fixed it.

Thanks Georg, there’s no crash when launching Glyphs now, but once I launch the plugin itself I still get:

Details:

Traceback (most recent call last):

File “plugin.py”, line 66, in showWindow_

print(“show LSCadencerTool…”)

UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\u2026’ in position 19: ordinal not in range(128)

App:3.3-3326 Plugin:6.4-7 System:14.0.0

LS Cadenculator has no problem running though…

Can you update your macOS. It is not a good idea to use a .0.0 version. I don’t really understand why that error happens.