Page 1 of 1
How to scale emoji fonts on fd64?
Posted: Thu Oct 10, 2024 11:52 pm
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?
Re: How to scale emoji fonts on fd64?
Posted: Fri Oct 11, 2024 9:50 pm
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>
Re: How to scale emoji fonts on fd64?
Posted: Fri Nov 01, 2024 3:25 am
by stemsee
It didn't work for me ...
Re: How to scale emoji fonts on fd64?
Posted: Fri Nov 01, 2024 8:21 am
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 (44.51 KiB) Viewed 180 times
Re: How to scale emoji fonts on fd64?
Posted: Sat Nov 02, 2024 9:43 am
by stemsee
- xscreenshot-20241102T173945.png (50.82 KiB) Viewed 141 times
- xscreenshot-20241102T174127.png (8.67 KiB) Viewed 141 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.
Re: How to scale emoji fonts on fd64?
Posted: Sat Nov 02, 2024 11:20 am
by MochiMoppel
stemsee wrote: ↑Sat Nov 02, 2024 9:43 amI 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.
Re: How to scale emoji fonts on fd64?
Posted: Sat Nov 02, 2024 11:39 am
by stemsee
Pasted your line and no difference.
- xscreenshot-20241102T193158.png (41.05 KiB) Viewed 126 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 (17.12 KiB) Viewed 123 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' from here, my personal tailnet vpn 'funnel'.
https://tablet-888.taild4ecf9.ts.net/
Re: How to scale emoji fonts on fd64?
Posted: Sat Nov 02, 2024 1:11 pm
by MochiMoppel
stemsee wrote: ↑Sat Nov 02, 2024 11:39 amAhh! in liebreoffice writer it looks fine! Probably has the correct font somewhere in its tree.
Looks fine in Leafpad too:
- NotoColorEmoji_outdated.png (13.54 KiB) Viewed 108 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 Couldn't make it work, so I will stay with the version in BW64.
Re: How to scale emoji fonts on fd64?
Posted: Sat Nov 02, 2024 2:34 pm
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!