How to scale emoji fonts on fd64?

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

How to scale emoji fonts on fd64?

Post by stemsee »

My google emoji fonts are huge compared to surrounding text, how to fix it? which config needs editing to scale the fonts down. I read that removing this line from a certain config works on some OSes 'fonts.fontconfig.ultimate.enable = true;' but where to find it?

step
Posts: 546
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 57 times
Been thanked: 198 times
Contact:

Re: How to scale emoji fonts on fd64?

Post by step »

That line doesn't look like native fontconfig settings, which come in the form of XML files. You can create your personal configuration XML file ~/.config/fontconfig/fonts.conf, and also split your configuration over multiple files located in ~/.config/fontconfig/conf.d. The fontconfig manual is dense but accurate https://www.freedesktop.org/software/fo ... -user.html.

To tell fontconfig to scale a font you can create a match rule for the 'font' target with a test rule for the font 'family' of your choice. The rule should edit the font 'matrix', a 2x2 matrix that allows shifting and resizing the font. I don't have a fully worked-out example for you but I can give you something UNTESTED that you can try and refine. This stuff goes INSIDE a fontconfig XML file, it isn't enough by itself.

Resize font to 115%:

Code: Select all

  <match target='font'>
    <test name='family' compare='contains'><string>Your Font</string></test>
    <edit mode='assign' name='matrix'>
      <times>
        <name>matrix</name>
        <matrix>
          <double>1.15</double><double>0</double>
          <double>0</double><double>1.15</double>
        </matrix>
      </times>
    </edit>
  </match>
User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: How to scale emoji fonts on fd64?

Post by stemsee »

It didn't work for me ...

User avatar
MochiMoppel
Posts: 1232
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: How to scale emoji fonts on fd64?

Post by MochiMoppel »

stemsee wrote: Thu Oct 10, 2024 11:52 pm

My google emoji fonts

fonts? How many do you have? AFAIK there is only one emoji font created by Google. This font is called Noto Color Emoji. Is this the one you are talking about?

are huge compared to surrounding text, how to fix it?

What means "huge"? By design they are not taller than any other character of other fonts. They may reach the maximum permissible height, like Unicode U+2592 ▒ , which is not an Emoji, but I haven't found a single emoji glyph that is taller than that. Most, if not all, are smaller.

font-comparison.png
font-comparison.png (44.51 KiB) Viewed 171 times
User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: How to scale emoji fonts on fd64?

Post by stemsee »

xscreenshot-20241102T173945.png
xscreenshot-20241102T173945.png (50.82 KiB) Viewed 132 times
xscreenshot-20241102T174127.png
xscreenshot-20241102T174127.png (8.67 KiB) Viewed 132 times

I thought I had two emoji fonts, one B&W the other color. When pasted into normal text they occupy a height of several lines, much greater in size than a Capital in any other font.

User avatar
MochiMoppel
Posts: 1232
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: How to scale emoji fonts on fd64?

Post by MochiMoppel »

stemsee wrote: Sat Nov 02, 2024 9:43 am

I thought I had two emoji fonts, one B&W the other color. When pasted into normal text they occupy a height of several lines, much greater in size than a Capital in any other font.

Your screenshot shows "Google Hangout Pictures" but not emojis of the Noto Color Emoji font
Noto emoji faces look different. They are round. Paste following line into your (unknown) text application to see the difference:

Code: Select all

I shall possess within the veil, 😇

I suspect that what you are pasting (from where? into which application?) are images and not text. Would explain the height difference.

User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: How to scale emoji fonts on fd64?

Post by stemsee »

Pasted your line and no difference.

xscreenshot-20241102T193158.png
xscreenshot-20241102T193158.png (41.05 KiB) Viewed 117 times

Tried changing font first as well. I tried yadu --text-info, geany ... Ahh! in liebreoffice writer it looks fine! Probably has the correct font somewhere in its tree.

xscreenshot-20241102T194412.png
xscreenshot-20241102T194412.png (17.12 KiB) Viewed 114 times

Well .... i don't really have a clear understanding of how fonts 'decide' to step in and do some work, in the case of using sans, but i guess another font displays the emoji amidst sans characters ... or?

So which font am I missing, can you upload or provide a link?

you can download the font i have from here, and also emoji-2-desktop.sh script which has those 'images' :mrgreen: from here, my personal tailnet vpn 'funnel'.
https://tablet-888.taild4ecf9.ts.net/

User avatar
MochiMoppel
Posts: 1232
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: How to scale emoji fonts on fd64?

Post by MochiMoppel »

stemsee wrote: Sat Nov 02, 2024 11:39 am

Ahh! in liebreoffice writer it looks fine! Probably has the correct font somewhere in its tree.

Looks fine in Leafpad too:

NotoColorEmoji_outdated.png
NotoColorEmoji_outdated.png (13.54 KiB) Viewed 99 times

As you can see I can reproduce the triangular face after installing the NotoColorEmoji.ttf of your linked page. This font is only 5MB while the one that came with my BW64 (which I temporarily removed for the test) is 11MB, covers more characters and the emojis are much more detailed. I suspect that your version is outdated. The newest version offered by Google here is 24MB :roll: Couldn't make it work, so I will stay with the version in BW64.

User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: How to scale emoji fonts on fd64?

Post by stemsee »

Thanks!

I remember now, I couldn't access google sites before I got my vpn working, and i found this old version! But this seems to have slowed down emoji selection, at least in yad....maybe i need to do a restart after 'updating' fonts. Otherwise, it isn't working here too!

Post Reply

Return to “FatDog”