<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37451</bug_id>
          
          <creation_ts>2010-04-12 10:46:00 -0700</creation_ts>
          <short_desc>Web Inspector: Show Exact Font Being Used</short_desc>
          <delta_ts>2026-01-12 09:09:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=146838</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=286608</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bweinstein</cc>
    
    <cc>cyberskull</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>keishi</cc>
    
    <cc>lars.sonchocky-helldorf</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>pfeldman</cc>
    
    <cc>phiw2</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>seiz</cc>
    
    <cc>socket.h</cc>
    
    <cc>syoichi</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>211653</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-04-12 10:46:00 -0700</bug_when>
    <thetext>From WebKit Contributors Meeting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354272</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Downs">cyberskull</who>
    <bug_when>2011-02-20 05:43:15 -0800</bug_when>
    <thetext>I was just about to file a bug for this myself.

I would like to see in the font list the font in use bolded or otherwise marked as to what is in use.

If a fallback is used I think next to the keyword the font should be listed in parentheses and italics. Possibly a lighter color as well?

So for example:

font-family: mycoolcustomfont, &lt;b&gt;Helvetica&lt;/b&gt;, san-serif;
Since for whatever reason the first choice was not used and the second choice was, it is bolded to indicate the active typeface.

font-family: monotype&lt;i&gt;(Monaco)&lt;/i&gt;;
The font here is one of the keyword fallbacks, so in this case it shows the fallback in italics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>923087</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2013-08-30 11:03:55 -0700</bug_when>
    <thetext>I think Blink may have done this recently as well:
&lt;https://chromium.googlesource.com/chromium/blink/+/a530760b6a7bb4b647e47a1cdcd40e890f2630cb&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017880</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-06-24 00:21:38 -0700</bug_when>
    <thetext>*** Bug 58079 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017882</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-06-24 00:21:42 -0700</bug_when>
    <thetext>*** Bug 134235 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1017883</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-06-24 00:21:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/17431777&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188609</commentid>
    <comment_count>6</comment_count>
    <who name="Stefan Seiz">seiz</who>
    <bug_when>2016-04-29 06:41:45 -0700</bug_when>
    <thetext>IMHO, this is a much needed feature which both, FF and Chrome have already implemented. Any chance to see this in Safari/Webkit?

I second the idea to &lt;bold&gt; the font on the font list. Much preferred to the way e.g. Chrome does it, by displaying it below all the output in the &quot;Computed&quot; Tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188979</commentid>
    <comment_count>7</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2016-04-29 20:30:28 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; IMHO, this is a much needed feature which both, FF and Chrome have already
&gt; implemented. Any chance to see this in Safari/Webkit?
&gt; 
&gt; I second the idea to &lt;bold&gt; the font on the font list. Much preferred to the
&gt; way e.g. Chrome does it, by displaying it below all the output in the
&gt; &quot;Computed&quot; Tab.

This is an interesting idea.

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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189322</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2016-05-01 22:40:27 -0700</bug_when>
    <thetext>(In reply to comment #7)

&gt; 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)
 
&gt; In the WebKit inspector, you can only select an entire node at a time. How
&gt; does it work in other browsers when certain characters in an element fall
&gt; back to a different font than the rest of the characters?

Speaking of Firefox: given this test file:
&lt;!doctype html&gt;
&lt;body style=&quot;font-family: &apos;Helvetica Neue&apos;; font-size: 2em;&quot;&gt;

&lt;p&gt;test:☲ trigram&lt;/p&gt;

&lt;p style=&quot;font-family: Optima, sans-serif&quot;&gt;test letters other ō ā&lt;/p&gt;

Selecting any of the two &lt;p&gt;, the font sub tab shows the two font-family being used. For the 1st para, it shows &apos;Apple Symbols&apos; and &apos;Helvetica Neue&apos;; for the second one, it shows &apos;Optima&apos; and &apos;Helvetica&apos; (Optima doesn&apos;t have glyphs for ō ā).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189557</commentid>
    <comment_count>9</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2016-05-02 16:27:06 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; 
&gt; &gt; This is an interesting idea.
&gt; 
&gt; I still like the way Firefox (46) does it, a separate sub tab in the
&gt; inspector.
&gt; (Weirdly perhaps, that sub tab does’t seem to exist in Firefox Developer
&gt; edition and Firefox nightly)
&gt;  
&gt; &gt; In the WebKit inspector, you can only select an entire node at a time. How
&gt; &gt; does it work in other browsers when certain characters in an element fall
&gt; &gt; back to a different font than the rest of the characters?
&gt; 
&gt; Speaking of Firefox: given this test file:
&gt; &lt;!doctype html&gt;
&gt; &lt;body style=&quot;font-family: &apos;Helvetica Neue&apos;; font-size: 2em;&quot;&gt;
&gt; 
&gt; &lt;p&gt;test:☲ trigram&lt;/p&gt;
&gt; 
&gt; &lt;p style=&quot;font-family: Optima, sans-serif&quot;&gt;test letters other ō ā&lt;/p&gt;
&gt; 
&gt; Selecting any of the two &lt;p&gt;, the font sub tab shows the two font-family
&gt; being used. For the 1st para, it shows &apos;Apple Symbols&apos; and &apos;Helvetica Neue&apos;;
&gt; for the second one, it shows &apos;Optima&apos; and &apos;Helvetica&apos; (Optima doesn&apos;t have
&gt; 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&apos;m not sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189615</commentid>
    <comment_count>10</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2016-05-02 18:42:45 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (In reply to comment #7)
&gt; &gt; 
&gt; &gt; &gt; This is an interesting idea.
&gt; &gt; 
&gt; &gt; I still like the way Firefox (46) does it, a separate sub tab in the
&gt; &gt; inspector.
&gt; &gt; (Weirdly perhaps, that sub tab does’t seem to exist in Firefox Developer
&gt; &gt; edition and Firefox nightly)
&gt; &gt;  
&gt; &gt; &gt; In the WebKit inspector, you can only select an entire node at a time. How
&gt; &gt; &gt; does it work in other browsers when certain characters in an element fall
&gt; &gt; &gt; back to a different font than the rest of the characters?
&gt; &gt; 
&gt; &gt; Speaking of Firefox: given this test file:
&gt; &gt; &lt;!doctype html&gt;
&gt; &gt; &lt;body style=&quot;font-family: &apos;Helvetica Neue&apos;; font-size: 2em;&quot;&gt;
&gt; &gt; 
&gt; &gt; &lt;p&gt;test:☲ trigram&lt;/p&gt;
&gt; &gt; 
&gt; &gt; &lt;p style=&quot;font-family: Optima, sans-serif&quot;&gt;test letters other ō ā&lt;/p&gt;
&gt; &gt; 
&gt; &gt; Selecting any of the two &lt;p&gt;, the font sub tab shows the two font-family
&gt; &gt; being used. For the 1st para, it shows &apos;Apple Symbols&apos; and &apos;Helvetica Neue&apos;;
&gt; &gt; for the second one, it shows &apos;Optima&apos; and &apos;Helvetica&apos; (Optima doesn&apos;t have
&gt; &gt; glyphs for ō ā).
&gt; 
&gt; Ah, so it just presents the union of all the used fonts in the node.
&gt; 
&gt; Maybe that idea is enough for us. I&apos;m not sure.

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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>