[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

Caolán McNamara  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |caol...@redhat.com
   |desktop.org |
 Status|NEW |ASSIGNED

خالد حسني  changed:

   What|Removed |Added

 CC||philip...@hotmail.com

--- Comment #14 from Caolán McNamara  ---
my comment there was "possible to-do, sort by UILocale instead of process
locale" so we can simply do that instead

--- Comment #15 from خالد حسني  ---
*** Bug 107485 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-06 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

Caolán McNamara  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |caol...@redhat.com
   |desktop.org |
 Status|NEW |ASSIGNED

--- Comment #14 from Caolán McNamara  ---
my comment there was "possible to-do, sort by UILocale instead of process
locale" so we can simply do that instead

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #13 from Maxim Iorsh  ---
@Caolán, could you please review this issue and express your opinion?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #12 from خالد حسني  ---
(In reply to Maxim Iorsh from comment #11)
> (In reply to خالد حسني from comment #8)
> > It seems that displaying localized font names is tied to the locale being
> > used and not the UI language. I find this questionable choice, but IIRC
> > Windows does this as well, so may be there is a good rational for this or
> > may be users of certain locale expect it?
> > 
> > I think this is a FontConfig issue, though:
> > 
> > $ fc-match "Miriam CLM"
> > MiriamCLM-Book.ttf: "Miriam CLM" "Book"
> > 
> > $ LC_ALL=he_IL LANG=en_US fc-match "Miriam CLM"
> > MiriamCLM-Book.ttf: "מרים" "קל"
> > 
> > $ LC_ALL=en_US LANG=he_IL fc-match "Miriam CLM"
> > MiriamCLM-Book.ttf: "Miriam CLM" "Book"
> > 
> > FontConfig seems to be returning the localized name depending on the locale
> > not the language.
> 
> The behavior of fontconfig is correct, because LC_ALL overrides LANG. The
> issue seems to be that UI language is not necessarily reflected in any
> environment variable, Libreoffice even allows to set it explicitly in
> settings.
> 
> Maybe the correct solution is to call fontconfig with custom environment
> which depends on use case. I'd suggest the following:
> 
> For UI: Set LC_ALL=; call fontconfig
> For file save: Set LC_ALL=C; call fontconfig
> 
> In this way each user will see font name tailored to their UI, but the font
> name used inside file read/write will be stable across all systems.

Sorry, that was red-herring indeed.

The issue is in LibreOffice code, in particular this code that uses process
locale instead of the UI language:

https://git.libreoffice.org/core/+/refs/heads/master/vcl/unx/generic/fontmanager/fontconfig.cxx#445

The best person to comment about this code is Caolán McNamara, but this code
have been like this since ~forever.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #11 from Maxim Iorsh  ---
(In reply to خالد حسني from comment #8)
> It seems that displaying localized font names is tied to the locale being
> used and not the UI language. I find this questionable choice, but IIRC
> Windows does this as well, so may be there is a good rational for this or
> may be users of certain locale expect it?
> 
> I think this is a FontConfig issue, though:
> 
> $ fc-match "Miriam CLM"
> MiriamCLM-Book.ttf: "Miriam CLM" "Book"
> 
> $ LC_ALL=he_IL LANG=en_US fc-match "Miriam CLM"
> MiriamCLM-Book.ttf: "מרים" "קל"
> 
> $ LC_ALL=en_US LANG=he_IL fc-match "Miriam CLM"
> MiriamCLM-Book.ttf: "Miriam CLM" "Book"
> 
> FontConfig seems to be returning the localized name depending on the locale
> not the language.

The behavior of fontconfig is correct, because LC_ALL overrides LANG. The issue
seems to be that UI language is not necessarily reflected in any environment
variable, Libreoffice even allows to set it explicitly in settings.

Maybe the correct solution is to call fontconfig with custom environment which
depends on use case. I'd suggest the following:

For UI: Set LC_ALL=; call fontconfig
For file save: Set LC_ALL=C; call fontconfig

In this way each user will see font name tailored to their UI, but the font
name used inside file read/write will be stable across all systems.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #10 from خالد حسني  ---
(In reply to Eyal Rozenberg from comment #9)
> (In reply to خالد حسني from comment #8)
> > It seems that displaying localized font names is tied to the locale being
> > used and not the UI language. I find this questionable choice, but IIRC
> > Windows does this as well,
> 
> I don't remember seeing this on Windows. At least - not when I browse fonts,
> and not when I select fonts in MSO. Can you be more specific?

That was years ago, so I’ll need to test it again. But I had built a font that
had Arabic localized name entries, and it would show the Arabic names even on
systems with English UI language.

> > so may be there is a good rational for this or
> > may be users of certain locale expect it?
> 
> I doubt that a user, who has chosen a certain UI language for an app,
> expects drop-down list items to use the locale language instead. Not to
> mention the fact that many/most Hebrew and probably Arabic fonts don't even
> include a translation of the name.

Different user communities have different expectations, for example Chinese
names for Chinese fonts seem to be common.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #9 from Eyal Rozenberg  ---
(In reply to خالد حسني from comment #8)
> It seems that displaying localized font names is tied to the locale being
> used and not the UI language. I find this questionable choice, but IIRC
> Windows does this as well,

I don't remember seeing this on Windows. At least - not when I browse fonts,
and not when I select fonts in MSO. Can you be more specific?

> so may be there is a good rational for this or
> may be users of certain locale expect it?

I doubt that a user, who has chosen a certain UI language for an app, expects
drop-down list items to use the locale language instead. Not to mention the
fact that many/most Hebrew and probably Arabic fonts don't even include a
translation of the name.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-12-05 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

خالد حسني  changed:

   What|Removed |Added

 OS|All |Linux (All)
 Ever confirmed|0   |1
 Status|UNCONFIRMED |NEW

--- Comment #8 from خالد حسني  ---
It seems that displaying localized font names is tied to the locale being used
and not the UI language. I find this questionable choice, but IIRC Windows does
this as well, so may be there is a good rational for this or may be users of
certain locale expect it?

I think this is a FontConfig issue, though:

$ fc-match "Miriam CLM"
MiriamCLM-Book.ttf: "Miriam CLM" "Book"

$ LC_ALL=he_IL LANG=en_US fc-match "Miriam CLM"
MiriamCLM-Book.ttf: "מרים" "קל"

$ LC_ALL=en_US LANG=he_IL fc-match "Miriam CLM"
MiriamCLM-Book.ttf: "Miriam CLM" "Book"

FontConfig seems to be returning the localized name depending on the locale not
the language.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-11-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #7 from Eyal Rozenberg  ---
(In reply to Maxim Iorsh from comment #6)

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Debian package version: 1:7.4.1-1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-11-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #6 from Maxim Iorsh  ---
(In reply to Eyal Rozenberg from comment #5)
> Created attachment 183407 [details]
> Properly displayed with an LO 7.5 dev build on Linux
> 
> I have to say I can't reproduce this bug - neither with LO 7.4.12 nor with a
> recent 7.5 dev build. Attaching what I see in the font family drop-down list.

This is strange. Eyal, could you please paste the entire build info? If you are
using 7.4.2.3 appimage, it could be great.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-11-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #5 from Eyal Rozenberg  ---
Created attachment 183407
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183407=edit
Properly displayed with an LO 7.5 dev build on Linux

I have to say I can't reproduce this bug - neither with LO 7.4.12 nor with a
recent 7.5 dev build. Attaching what I see in the font family drop-down list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-11-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

Heiko Tietze  changed:

   What|Removed |Added

   Keywords|needsUXEval |

--- Comment #4 from Heiko Tietze  ---
(In reply to Eyal Rozenberg from comment #3)
> There might be some design rationale to this... let's ask other people.

Don't think so. If the font provides an English name it should be shown. The
expanded list does it at least for Noto Naskh Arabic and similar showing the
Arab name next to it. Same for utkal and Veberteysch in the screenshot.

Wonder what makes those fonts different. How does the font info look like for a
working example?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-10-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

Eyal Rozenberg  changed:

   What|Removed |Added

   Keywords||needsUXEval
 Blocks||129661
 CC||eyalr...@gmx.com,
   ||heiko.tietze@documentfounda
   ||tion.org

--- Comment #3 from Eyal Rozenberg  ---
There might be some design rationale to this... let's ask other people.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=129661
[Bug 129661] [META] Right-To-Left (RTL) user interface issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-10-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

Eyal Rozenberg  changed:

   What|Removed |Added

 Blocks||112812


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=112812
[Bug 112812] [META] Hebrew language-specific RTL issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-10-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #2 from Maxim Iorsh  ---
Created attachment 183227
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183227=edit
Miriam fonts - regular and bold

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151722] Incorrect TTF names are used in UI and in saved document

2022-10-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151722

--- Comment #1 from Maxim Iorsh  ---
Created attachment 183226
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183226=edit
Font list screenshot

-- 
You are receiving this mail because:
You are the assignee for the bug.