emoji fonts breaks text rendering when selected from fonts list

RESOLVED INVALID

Status

()

P3
normal
RESOLVED INVALID
a year ago
a year ago

People

(Reporter: giuseppeit18, Unassigned)

Tracking

({fonts})

55 Branch
fonts
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

a year ago
Created attachment 8904717 [details]
emoji.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
Build ID: 20170824000000

Steps to reproduce:

-Change font to emojiOne mozilla or noto emojii
-open https://ftp.mozilla.org/pub/firefox/releases/


Actual results:

You can see the text numbers replaced by emoji numbers or some text rendering artifacts


Expected results:

maybe a problem with the emojionemozilla.ttf file or the fonts handling

I reproduced the bug on:
-Opensuse Tumbleweed
-Opensuse  Leap 42.3
-Kubuntu 17.10 beta
Component: Untriaged → Layout: Text
OS: Unspecified → Linux
Product: Firefox → Core
(Reporter)

Updated

a year ago
Keywords: fonts
OS: Linux → All
Hardware: Unspecified → All
(Reporter)

Comment 1

a year ago
reproducible even on Windows 7 SP1 x64
I'm not sure I would consider this a bug.... if you change the (default) font to a color-emoji font that has emoji-style glyphs for the ASCII numbers (as both EmojiOne and Noto do), then naturally this will be the result on a page that does not explicitly set any other font family.

Setting the browser's default serif or sans-serif font family to an emoji font just isn't a very useful thing to do.
(Reporter)

Comment 3

a year ago
I temporarily changed the character to force the visualization of the emoji. The wrong visualization is present with a specific combination of dots and numbers and not all the websites.Numbers Dots and emoji have different unicode.I check this problem with other version of firefox and symbols font.

windows 7

FF nightly : segoe ui -phoronix.com ok ftp.mozilla ok
             emojione -phoronix.com ok ftp.mozilla wrong

FF 55 : segoe ui -phoronix.com ok ftp.mozilla ok 
        emojione -phoronix.com ok ftp.mozilla wrong

Linux 

FF 55 emojione -phoronix.com wrong ftp.mozilla wrong

As you can see linux and windows on phoronix.com have a different rendering. I think that it's possible only with a bug in the font handling.
Priority: -- → P3
(In reply to Giuseppe Salinaro from comment #3)
> I temporarily changed the character to force the visualization of the emoji.
> The wrong visualization is present with a specific combination of dots and
> numbers and not all the websites.Numbers Dots and emoji have different
> unicode.I check this problem with other version of firefox and symbols font.
> 
> windows 7
> 
> FF nightly : segoe ui -phoronix.com ok ftp.mozilla ok
>              emojione -phoronix.com ok ftp.mozilla wrong
> 
> FF 55 : segoe ui -phoronix.com ok ftp.mozilla ok 
>         emojione -phoronix.com ok ftp.mozilla wrong
> 
> Linux 
> 
> FF 55 emojione -phoronix.com wrong ftp.mozilla wrong
> 
> As you can see linux and windows on phoronix.com have a different rendering.
> I think that it's possible only with a bug in the font handling.

The EmojiOne font has "emoji-style" default glyphs for the regular ASCII numbers, so AFAICS the rendering shown in the screenshot is exactly what would be expected if you change the browser's default font to be EmojiOne.

Segoe UI Emoji doesn't do this, it has "normal" text-style glyphs for the numbers.

At this point it looks to me as though it's working as expected for the fonts involved. If you think something is wrong (aside from the "unexpected" glyphs in EmojiOne for ASCII numbers, and perhaps a few other symbols), please provide a specific testcase (minimal HTML file that shows the problem), and screenshots showing the results you get.
As described in comment 4, I think this is working as expected, given that the EmojiOne font has (emoji-style) glyphs for the ASCII numbers etc. Choosing such a font as the browser's default is bound to result in some pretty bad-looking pages, when the site itself doesn't specify a different font-family.
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.