Wildcat Media
Well-known member
I'm completely baffled as to why this suggestion was ignored. I'd consider this to be a bug, quite honestly. Maybe the rest of the world is still in the dark ages and not using variable fonts (which have been around for quite a while now)? They're pretty cool to work with once you get familiar with them.
In essence, I need to not only add more font weights to style properties, I also need to edit the three existing fields (fontWeightNormal, fontWeightLight, fontWeightHeavy) so that we are not forced to enter font weights in steps of 100. Variable fonts can take any whole number between 100 and 900 if the font supports it, and the designs I'm working on need font weights in between these numbers.
I once had an add-on I wrote (for XF 2.2) that was able to add the three extra fields I needed (extra light, medium, black weights) with the proper "step=1" so any number could be entered. That part still works fine.
But for some reason I can no longer alter the existing three fields (fontWeightNormal, fontWeightLight, fontWeightHeavy) to get rid of "step=100".
I don't think it's a template modification. But if it is, and I knew the template name, I could fix the issue that way.
Is there a way I can get my add-on to overwrite these three to alter "step=100" to the correct "step=1"? Obviously I can't add three new, nearly identical fields with new font weight names, as all templates use the default font weight names (fontWeightNormal, fontWeightLight, fontWeightHeavy), and I'm not going to alter thousands of references to it in any style I work with.
Lack of interest Thread 'Changes to font settings in style properties'
Two things...

For the font weight, I would like to remove limitation of having font weights limited to multiples of 100. I am doing custom font weights in extra.less but that seems a very hacky/messy way to do it. (I can't find the admin template to edit so I can change that behavior.)
Also, can we add Duotone under Font Awesome weight? Again, it's a bit hacky to have to do this using extra.less or creating template modifications.

For the font weight, I would like to remove limitation of having font weights limited to multiples of 100. I am doing custom font weights in extra.less but that seems a very hacky/messy way to do it. (I can't find the admin template to edit so I can change that behavior.)
Also, can we add Duotone under Font Awesome weight? Again, it's a bit hacky to have to do this using extra.less or creating template modifications.
- Wildcat Media
- Replies: 2
- Forum: Closed suggestions
In essence, I need to not only add more font weights to style properties, I also need to edit the three existing fields (fontWeightNormal, fontWeightLight, fontWeightHeavy) so that we are not forced to enter font weights in steps of 100. Variable fonts can take any whole number between 100 and 900 if the font supports it, and the designs I'm working on need font weights in between these numbers.
I once had an add-on I wrote (for XF 2.2) that was able to add the three extra fields I needed (extra light, medium, black weights) with the proper "step=1" so any number could be entered. That part still works fine.
But for some reason I can no longer alter the existing three fields (fontWeightNormal, fontWeightLight, fontWeightHeavy) to get rid of "step=100".
I don't think it's a template modification. But if it is, and I knew the template name, I could fix the issue that way.
Is there a way I can get my add-on to overwrite these three to alter "step=100" to the correct "step=1"? Obviously I can't add three new, nearly identical fields with new font weight names, as all templates use the default font weight names (fontWeightNormal, fontWeightLight, fontWeightHeavy), and I'm not going to alter thousands of references to it in any style I work with.