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?
How to scale emoji fonts on fd64?
Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators
-
- 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?
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>
- 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?
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.
- 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?
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.
- 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?
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.
- 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?
Pasted your line and no difference.
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.
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' from here, my personal tailnet vpn 'funnel'.
https://tablet-888.taild4ecf9.ts.net/
- 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?
Looks fine in Leafpad too:
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 Couldn't make it work, so I will stay with the version in BW64.
- 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?
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!