Skip to content

Myanmar text doesn't display properly on Ubuntu #12944

Closed

Description

@veer66

On Ubuntu 16.04 with two Myanmar fonts i.e. Noto Sans Myanmar and Padauk installed, Servo Commit 9415252 cannot display Myanmar text properly as shown below:

myanmar2

However it should look somewhat like this:

myanmar1

Remark: Myanmar text was taken from word-break-break-all-007.htm http://file.veerkesto.net/servo_test/myanmar.html

Activity

  1. veer66 commented on May 11, 2020

    @veer66
    ContributorAuthor

    Although #4901 was closed, Servo 0.0.1-70d4e142f still doesn't display Myanmar text.

    servo-Screenshot_2020-05-12_00-39-45

  2. jdm commented on May 11, 2020

    @jdm
    Member
  3. added
    P-linux
    on May 11, 2020
  4. changed the title [-]Servo Commit 94152523 does not display Myanmar text properly[/-] [+]Myanmar text doesn't display properly on Ubuntu[/+] on May 11, 2020
  5. jdm commented on May 11, 2020

    @jdm
    Member

    Since the page doesn't include any CSS fonts, this looks like a default font fallback issue on Linux.

  6. jdm commented on May 11, 2020

    @jdm
    Member

    The only fallback missing from

    // Based on gfxPlatformGtk::GetCommonFallbackFonts() in Gecko
    pub fn fallback_font_families(codepoint: Option<char>) -> Vec<&'static str> {
    let mut families = vec!["DejaVu Serif", "FreeSerif", "DejaVu Sans", "FreeSans"];
    if let Some(codepoint) = codepoint {
    if is_cjk(codepoint) {
    families.push("TakaoPGothic");
    families.push("Droid Sans Fallback");
    families.push("WenQuanYi Micro Hei");
    families.push("NanumGothic");
    that's present in https://searchfox.org/mozilla-central/rev/446160560bf32ebf4cb7c4e25d7386ee22667255/gfx/thebes/gfxPlatformGtk.cpp#217-246 is "Symbola".

  7. atouchet commented on May 11, 2020

    @atouchet
    Contributor

    I am also not able to reproduce the issue in Windows 10:

    Screenshot

  8. talnetd commented on May 11, 2020

    @talnetd

    So this is solved?

  9. jdm commented on May 11, 2020

    @jdm
    Member

    No, it still reproduces on Ubuntu.

  10. talnetd commented on May 12, 2020

    @talnetd

    Will try to reproduce with latest ubuntu LTS version.

  11. veer66 commented on Nov 30, 2020

    @veer66
    ContributorAuthor

    OS: Ubuntu 20.04.1 LTS x86_64
    Kernel: 5.4.0-54-generic

    Servo 0.0.1-6f6f8488d

    Servo

    Firefox

    Firefox

  12. veer66 commented on Feb 10, 2021

    @veer66
    ContributorAuthor

    Servo 0.0.1-4a52c94cc
    OS: Fedora 33 (KDE Plasma) x86_64

    servo-fedora-33-kde-Screenshot_20210210_125218

  13. veer66 commented on Jan 17, 2023

    @veer66
    ContributorAuthor

    Servo 0.0.1-806db676b on openSUSE Leap 15.4 x86_64

    image

  14. veer66 commented on Jan 17, 2023

    @veer66
    ContributorAuthor

    This is the HTML for testing.

    <!DOCTYPE html>
    <html  lang="en" >
    <head>
    <meta charset="utf-8">
    <title>myanmar</title>
    </head>
    <body>
    <div><span>မြန်မာစာမြန်မာစာ</span></div>
    </body>
    </html>
  15. veer66 commented on Sep 12, 2023

    @veer66
    ContributorAuthor

    Servo 0.0.1-9b1247b20 on openSUSE LEAP 15.5 X86-64

    ./servo https://file.veer66.rocks/servo_test/myanmar.html
    

    The window was empty. Even boxes have gone.

    ภาพ

  16. veer66 commented on Sep 15, 2023

    @veer66
    ContributorAuthor

    Servo 0.0.1-c78533c1a on MX Linux 23 KDE

    The boxes are back.

    image

  17. mrobinson commented on Sep 15, 2023

    @mrobinson
    Member

    I'm fairly sure this is now a duplicate of #25883.

  18. mrobinson commented on May 16, 2024

    @mrobinson
    Member

    The following HTML seems to render properly on Linux, so I suspect that the issue here is really that we don't have the right fonts in the fallback list. This should be fixed fairly soon.

    <!DOCTYPE html>
    <html lang="en" class=" zzndpnpnv idc0_350"><script src="myanmar_files/inject.js"></script><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>myanmar</title>
    </head>
    <body>
    <div><span style="font-family: 'Noto Sans Myanmar';">မြန်မာစာမြန်မာစာ</span></div>
    </body></html>
  19. veer66 commented on May 18, 2024

    @veer66
    ContributorAuthor

    I suspect that the issue here is really that we don't have the right fonts in the fallback list. This should be fixed fairly soon.

    When I was reporting this issue in 2016, I thought somewhat similar to what you mentioned. I even made a similar experiment using Noto Sans Myanmar. Perhaps I've overlooked something.

  20. added 6 commits that reference this issue on May 18, 2024
    f23e5c2
    8d212c1
    8111d28
    e7542aa
    5d414b9
    d8ecea9
  21. added a commit that references this issue on May 27, 2024
    43a3c9c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-platform/fontsP-linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions