polybar: Emoji displaying incorrect size

Steps:

  1. Add emoji as a font
font-7 = NotoEmoji:size=7;
  1. use emoji character (here it’s in a webpage title, but it works on anything) image

It ignores any size specification.

I don’t know if this has anything to do with colour emoji being only a recent addition to cairo?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

I have been able to reduce the size of the emoji by specifying “scale” instead of “size”. e.g.

font-7 = NotoEmoji:scale=10;

It is inversely proportional (a smaller number means larger characters).

My “solution” was to install Symbola (apt install fonts-symbola, yaourt -S ttf-symbola) which is a monochrome font with extremely good coverage of the codespace.

I have been able to reduce the size of the emoji by specifying “scale” instead of “size”. e.g.

font-7 = NotoEmoji:scale=10;

It is inversely proportional (a smaller number means larger characters).

Yeah this works

@pvonmoradi Compound symbols don’t work in polybar in general, that’s why flags don’t work.