mako icon indicating copy to clipboard operation
mako copied to clipboard

Pango Markup not respected in some cases

Open cinghiopinghio opened this issue 7 years ago • 2 comments

Great project!

I tried to have a summary with bigger font as in <big>%s</big> or <span size='larger'>%s</span> without luck. The only way I could achieve this was setting the size as in: <span size='16000'>%s</span>.

Maybe a bug?

cinghiopinghio avatar Mar 15 '19 09:03 cinghiopinghio

I messed around with this a bit and the problem seems to be that pango is ignoring relative sizes as applied to the first text rendered. If I put something prior to the summary in the format, then the tags work as expected on the summary.

(This probably isn't a mako bug specifically, but I'm marking it as such because finding a workaround would be nice even if this is a pango limitation.)

vilhalmer avatar Mar 16 '19 20:03 vilhalmer

I have the same behavior. I opted for just setting the font size directly instead.

font=Overpass 12
format=<span font="14">%s</span>\n%b

Note See information about the font= shortcut under size in the Pango Markup documentation.

Mange avatar Jul 05 '23 19:07 Mange