Bug 133333 - the WebUI font name cannot display localed name in Font Selector
Summary: the WebUI font name cannot display localed name in Font Selector
Status: NEW
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-24 04:07 UTC by venthentzhang@gmail.com
Modified: 2020-05-26 04:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
the font list failed to display locale name in Online version (170.86 KB, image/png)
2020-05-24 04:07 UTC, venthentzhang@gmail.com
Details
Screenshot (116.46 KB, image/png)
2020-05-26 00:50 UTC, Aron Budea
Details
the expected (220.59 KB, image/png)
2020-05-26 03:12 UTC, venthentzhang@gmail.com
Details
the actual result (157.93 KB, image/png)
2020-05-26 03:53 UTC, venthentzhang@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description venthentzhang@gmail.com 2020-05-24 04:07:37 UTC
Created attachment 161211 [details]
the font list failed to display locale name in Online version

I found the issue on the online version.

Steps:
     1. the Linux is set chinse locale environment.
     2. start the loolwsd serivce and  the language is zh_CN
     3. visite the website " http://localhost:9980/loleaflet/2f31fdfa3/loleaflet.html?file_path=file:///home/ubuntu/project/online/test/data/hello-world.odt"
     4. the web ui's Font Selector faild to display the chinese font name,      the detail is seen in the attachment.

Expected:
        display the chinese name, such as the "SimSun", hope to the "宋体",

Actual:
        display the english name

I have run the LO desktop version, it's very well
Comment 1 Aron Budea 2020-05-26 00:50:05 UTC
Created attachment 161283 [details]
Screenshot

To be clear about the problem, it is the Font Style selector in the dialog, right? I'm asking because I see three red rectangles, and it's not obvious if anything is wrong with those (except that the font list in the editor doesn't show each font name with its own font, which is reported in bug 97015).

Can you also give it a try with the following?
http://localhost:9980/loleaflet/2f31fdfa3/loleaflet.html?file_path=file:///home/ubuntu/project/online/test/data/hello-world.odt&lang=zh-CN

I don't have Chinese locale set up, so I can't check the exact same scenario, but with the correct 'lang' parameter appended, the Font Style selector doesn't show those obviously wrong characters.
Comment 2 venthentzhang@gmail.com 2020-05-26 03:12:03 UTC
Created attachment 161286 [details]
the expected

home see the font's locale name, same as in the desktop version
Comment 3 venthentzhang@gmail.com 2020-05-26 03:12:53 UTC
Comment on attachment 161211 [details]
the font list failed to display locale name in Online version

just display english name in the font selector, hope see the locale name
Comment 4 QA Administrators 2020-05-26 03:36:26 UTC Comment hidden (obsolete)
Comment 5 venthentzhang@gmail.com 2020-05-26 03:53:51 UTC
Created attachment 161287 [details]
the actual result

display the font's english name
Comment 6 venthentzhang@gmail.com 2020-05-26 04:03:18 UTC
(In reply to Aron Budea from comment #1)
> Created attachment 161283 [details]
> Screenshot
> 
> To be clear about the problem, it is the Font Style selector in the dialog,
> right? I'm asking because I see three red rectangles, and it's not obvious
> if anything is wrong with those (except that the font list in the editor
> doesn't show each font name with its own font, which is reported in bug
> 97015).
> 
> Can you also give it a try with the following?
> http://localhost:9980/loleaflet/2f31fdfa3/loleaflet.html?file_path=file:///
> home/ubuntu/project/online/test/data/hello-world.odt&lang=zh-CN
> 
> I don't have Chinese locale set up, so I can't check the exact same
> scenario, but with the correct 'lang' parameter appended, the Font Style
> selector doesn't show those obviously wrong characters.


thanks your answser! i have tried append the parameter "lang=zh-CN", but the problem still was! i hope the correct scenario is :https://bugs.documentfoundation.org/attachment.cgi?id=161286. ok, I have deployed the new server, you can visit http://134.175.99.52:9980/loleaflet/2f31fdfa3/loleaflet.html?file_path=file:///opt/doc/test.doc&lang=zh-CN