<?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>190109</bug_id>
          
          <creation_ts>2018-09-29 01:15:26 -0700</creation_ts>
          <short_desc>Not monospaced</short_desc>
          <delta_ts>2018-10-01 11:10:49 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Дилян Палаузов">dpa-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1464727</commentid>
    <comment_count>0</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2018-09-29 01:15:26 -0700</bug_when>
    <thetext>I use WebKit from https://webkitgtk.org/ 2.22.2 with Epiphany 3.30.1 .  In the latter I have chosen under “Preferences” as monospace font “Monospace Regular 10”.  Visiting pages like https://tools.ietf.org/html/rfc4918 do not show text as monospace.  The problem does not seem to be with Epiphany: https://gitlab.gnome.org/GNOME/epiphany/issues/82 .  I have compiled WebKitGtk and Epiphany myself.

How can I find out, why WebKit does not render monospaced areas as such?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464857</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-09-30 09:21:08 -0700</bug_when>
    <thetext>You almost certainly have applied some custom fontconfig contfiguratoion, which is not supportable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464927</commentid>
    <comment_count>2</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2018-10-01 03:05:58 -0700</bug_when>
    <thetext>I did `fontconfig/configure &amp;&amp; make install` hence I do not have custom fontconfig configuration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464973</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-10-01 06:14:29 -0700</bug_when>
    <thetext>It&apos;s very hard to believe that this would be broken by default. Please post the output of:

$ fc-match monospace

I think it&apos;s almost surely going to return a non-Monospace font. You probably have some fontconfig configuration files in your home directory or something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1465028</commentid>
    <comment_count>4</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2018-10-01 09:14:49 -0700</bug_when>
    <thetext>That was it: creating ~/.config/fontconfig/fonts.conf with suitable
  &lt;alias&gt;
    &lt;family&gt;monospace&lt;/family&gt;
    &lt;prefer&gt;&lt;family&gt;Liberation Mono&lt;/family&gt;&lt;/prefer&gt;
  &lt;/alias&gt;


tweaked both `fc-match monospace` and WebKit to use correct monospace font.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1465046</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-10-01 09:49:19 -0700</bug_when>
    <thetext>Well something is wrong with your fontconfig installation, since that should be configured at the system level, and not require anything in your home directory....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1465119</commentid>
    <comment_count>6</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2018-10-01 11:10:49 -0700</bug_when>
    <thetext>Perhaps.  I installed fonts manually.  fontcongig seems to declare in its default configurition files which fonts are preferred monospace.

fc-list :spacing=100 emits
  /usr/share/fonts/truetype/anonymous_pro/Anonymous_Pro.ttf: Anonymous Pro:style=Regular
  /usr/share/fonts/truetype/ubuntu-font-family-0.80/UbuntuMono-BI.ttf: Ubuntu Mono:style=Bold Italic
  /usr/share/fonts/truetype/noto-hints/NotoMono-Regular.ttf: Noto Mono:style=Regular
  /usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf: Liberation Mono:style=Bold Italic
  /usr/share/fonts/truetype/noto-hints/NotoEmoji-Regular.ttf: Noto Emoji:style=Regular
  /usr/share/fonts/truetype/ubuntu-font-family-0.80/UbuntuMono-RI.ttf: Ubuntu Mono:style=Italic
  /usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf: Liberation Mono:style=Bold
  /usr/share/fonts/truetype/ubuntu-font-family-0.80/UbuntuMono-B.ttf: Ubuntu Mono:style=Bold
  /usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf: Liberation Mono:style=Regular
  /usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf: Liberation Mono:style=Italic
  /usr/share/fonts/truetype/anonymous_pro/Anonymous_Pro_BI.ttf: Anonymous Pro:style=Bold Italic
  /usr/share/fonts/truetype/anonymous_pro/Anonymous_Pro_I.ttf: Anonymous Pro:style=Italic
  /usr/share/fonts/truetype/ubuntu-font-family-0.80/UbuntuMono-R.ttf: Ubuntu Mono:style=Regular
  /usr/share/fonts/truetype/noto-hints/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
  /usr/share/fonts/truetype/anonymous_pro/Anonymous_Pro_B.ttf: Anonymous Pro:style=Bold

but fc-match monospace printed a totally different font.  Apparently for the output of fc-match the font properties are irrelepant and only the fc-configuration files matter, which by default do not mention the files from the list above and have to be set manually.

The conclusion it, that Epiphany lets the user set a monospaced font, but the choice gets ignored, so the case went back to https://gitlab.gnome.org/GNOME/epiphany/issues/82  .</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>