<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Show Exact Font Being Used"
href="https://bugs.webkit.org/show_bug.cgi?id=37451#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Show Exact Font Being Used"
href="https://bugs.webkit.org/show_bug.cgi?id=37451">bug 37451</a>
from <span class="vcard"><a class="email" href="mailto:mmaxfield@apple.com" title="Myles C. Maxfield <mmaxfield@apple.com>"> <span class="fn">Myles C. Maxfield</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=37451#c9">comment #9</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=37451#c8">comment #8</a>)
> > (In reply to <a href="show_bug.cgi?id=37451#c7">comment #7</a>)
> >
> > > This is an interesting idea.
> >
> > I still like the way Firefox (46) does it, a separate sub tab in the
> > inspector.
> > (Weirdly perhaps, that sub tab does’t seem to exist in Firefox Developer
> > edition and Firefox nightly)
> >
> > > In the WebKit inspector, you can only select an entire node at a time. How
> > > does it work in other browsers when certain characters in an element fall
> > > back to a different font than the rest of the characters?
> >
> > Speaking of Firefox: given this test file:
> > <!doctype html>
> > <body style="font-family: 'Helvetica Neue'; font-size: 2em;">
> >
> > <p>test:☲ trigram</p>
> >
> > <p style="font-family: Optima, sans-serif">test letters other ō ā</p>
> >
> > Selecting any of the two <p>, the font sub tab shows the two font-family
> > being used. For the 1st para, it shows 'Apple Symbols' and 'Helvetica Neue';
> > for the second one, it shows 'Optima' and 'Helvetica' (Optima doesn't have
> > glyphs for ō ā).
>
> Ah, so it just presents the union of all the used fonts in the node.
>
> Maybe that idea is enough for us. I'm not sure.</span >
I think WebCore should expose something like (in pseudocode)
result: [range]
struct range {
unsigned stringStartIndex
unsigned stringEndIndex
string font
}
Then, the web inspector machinery can determine the best way to expose this information to the user.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>