New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 616020 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit 29 days ago
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Put "Courier New" for Arabic script monospace fallback on inspector, or make "monospace" able to fallback correctly to Arabic on Windows

Project Member Reported by ebra...@gnu.org, May 31 2016

Issue description

The font chain "font-family: Consolas, Lucida Console, monospace;" doesn't provide needed font for Arabic and it makes Arabic to render with a non-monospace font, please turn it to "font-family: Consolas, Lucida Console, Courier New, monospace;" on the below places.

https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css&q=Consolas,%20Lucida%20Console&sq=package:chromium&dr=C&l=28

https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html&q=Consolas,%20Lucida%20Console&sq=package:chromium&dr=C&l=44

Or alternatively, make "monospace" somehow able to fallback to Arabic in needed cases, it was actually the subject of  Issue 466754  but it just happend when lang="ar" is defined which is not enough.

Compare these two:

data:text/html;charset=utf8,<span style="font-family: monospace;">%D8%B4%D9%88%D8%A7%D9%84</span>

data:text/html;charset=utf8,<span style="font-family: monospace;" lang="ar">%D8%B4%D9%88%D8%A7%D9%84</span>
 

Comment 1 by ebra...@gnu.org, May 31 2016

Summary: Put "Courier New" for Arabic script monospace fallback on inspector, or make "monospace" able to fallback correctly to Arabic on Windows (was: Put "Courier New" for Arabic script monospace fallback, or make "monospace" able to fallback correctly to Arabic on Windows)

Comment 2 by e...@chromium.org, May 31 2016

Cc: kojii@chromium.org
Components: Blink>Fonts
Status: Available (was: Unconfirmed)

Comment 3 by e...@chromium.org, May 31 2016

Components: -Blink>Fonts Platform>DevTools
Status: Untriaged (was: Available)
Over to devtools team.
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
I compared the two data:text/html links, but they look exactly the same for me on Linux in both Chrome 51 and Chrome 54.

Another question, why do you need these changes in InspectorOverlayPage.html?
Can you provide a specific scenario when fonts are picked improperly?

Comment 6 by ebra...@gnu.org, Jul 8 2016

This is about Windows which current font chain is not providing suitable mono-spaced glyphs for Arabic script but the suggested font which previously was default monospace font is providing suitable glyphs for that and it is better to have monospaced glyphs for most scripts possible where it supposed to be.
Project Member

Comment 7 by bugdroid1@chromium.org, Jul 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/400443255b3609c9c6d323cb08e083fd767ed39c

commit 400443255b3609c9c6d323cb08e083fd767ed39c
Author: lushnikov <lushnikov@chromium.org>
Date: Sat Jul 09 01:30:32 2016

DevTools: add Courier New to support monospace arabic on Windows

The current monospace font chain for windows doesn't cover arabic
symbols. "Courier New" has all the needed characters, let's fallback
to it.

BUG= 616020 
R=alph

Review-Url: https://codereview.chromium.org/2135803002
Cr-Commit-Position: refs/heads/master@{#404558}

[modify] https://crrev.com/400443255b3609c9c6d323cb08e083fd767ed39c/third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css

Comment 8 by ebra...@gnu.org, Jul 9 2016

Status: Fixed (was: Assigned)
Just checked that the fix is available on 54.0.2793.0. Thank you.

Sign in to add a comment