Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the weight of a font in gimp?
#1
I'm assuming that this is a font weight issue.  I was doing a mockup of a dialog, so I took what we had and then tried to modify it by adding some extra stuff.  This is what I got:

   

Can you tell which text doesn't belong? Wink

This is exactly the same font and font size with antialiasing and yet it looks lighter than the other text.  So I looked up if I could change the weight for a font in gimp but seems that it is not directly available.  The closest that I came up with was:  http://www.gimptalk.com/index.php?/topic...t-in-gimp/

Which I don't understand.  Some retired staff member references:

Quote:To "fatten" your text: "Filters->Distorts->Value Propagate" with the More Opaque option.

To "outline" text: "Layer->Mask->Add Layer Mask" initialized to Inverted Alpha Channel. "Filters->Distorts->Value Propagate" the layer (not the mask) with the More Opaque option.

and

Quote:Note that the Value Propagate method for outlining creates the outline outside the text. If you want the outline inside the text then you would apply Value Propagate on the layermask with the More White option.

But I'm a bit fuzzy as to how to use the Value Propagate filter and what it is doing.  Can anyone help me?  Is there any possibility that font weight will be added to the gimp in the future?
Reply
#2
It is known that Gimp 2.10.x renders text, especially small text on the light side. Some difference in anti-aliasing from previous versions. There was a bug report about this but not able to find it at the moment.

One way out is duplicate the text layer so that they reinforce each other.

example: https://i.imgur.com/cj6L6O3.jpg

Then merge them if editing text is no longer required.
Reply
#3
(10-04-2018, 05:30 PM)rich2005 Wrote: It is known that Gimp 2.10.x renders text, especially small text on the light side. Some difference in anti-aliasing from previous versions. There was a bug report about this but not able to find it at the moment.

One way out is duplicate the text layer so that they reinforce each other.

example: https://i.imgur.com/cj6L6O3.jpg

Then merge them if editing text is no longer required.

Ah, that is a simple way to fix.  Not perfect, but much better than it was.

This wasn't limited to 2.10.  I've seen something similar this in 2.8 as well.

Would be nice if a weight could also be applied to text. How would I ask for that to be added to gimp's backlog?

Thanks,


A
Reply
#4
Weight is part of the font design. You cannot make a font heavier by just applying a simple math transform to the light version.

Otherwise, bug reports and suggestions are here: https://gitlab.gnome.org/GNOME/gimp/issues
Reply
#5
(10-04-2018, 08:04 PM)Ofnuts Wrote: Weight is part of the font design. You cannot make a font heavier by just applying a simple math transform to the light version.
Sorry, I don't understand what you mean.  Are font's not being rendered by the OS?  I come from a Windows dev background where weight is part of the font attributes:

https://msdn.microsoft.com/en-us/library/ms931108.aspx

Is this not the case for other OSs?  That is what I was referring to when I said:


Quote:Would be nice if a weight could also be applied to text. 
Reply
#6
When you said "Is there any possibility that font weight will be added to the gimp in the future?" you implied that given a font, the software can compute a light or heavy version. This is not true. The font must come with several variants (each hand-tweaked by the font author) and all the software does is pick a specific variant. Each variant has specific "font attributes" (fonts work roughly the same in Windows, OSX and Linux, even if some font formats are trickier than other to use.
Reply


Forum Jump: