<table><tr><td style="">sassanh added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12614">View Revision</a></tr></table><br /><div><div><p><a href="https://phabricator.kde.org/p/hindenburg/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@hindenburg</a> sure<br />
Edit <tt style="background: #ebebeb; font-size: 13px;">~/.config/fontconfig/fonts.conf</tt> to something like this:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- -->
<fontconfig>
  <!-- Generic name aliasing -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>SS1</family>
      <family>SS2</family>
    </prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer>
      <family>S1</family>
      <family>S2</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>M1</family>
      <family>M2</family>
    </prefer>
  </alias>
</fontconfig></pre></div>

<p>It tells font config that by default applications are supposed to use <tt style="background: #ebebeb; font-size: 13px;">SS1</tt> in case they need a sansserif font and if <tt style="background: #ebebeb; font-size: 13px;">SS1</tt> doesn't have a special character they should use <tt style="background: #ebebeb; font-size: 13px;">SS2</tt>. Same applies for <tt style="background: #ebebeb; font-size: 13px;">M1</tt> and <tt style="background: #ebebeb; font-size: 13px;">M2</tt> for apps that need monospace fonts.<br />
Now lets suppose we've selected a font <tt style="background: #ebebeb; font-size: 13px;">F</tt> for Konsole which doesn't have character <tt style="background: #ebebeb; font-size: 13px;">C</tt>. Before this commit Konsole would try to render it with <tt style="background: #ebebeb; font-size: 13px;">SS1</tt> and then <tt style="background: #ebebeb; font-size: 13px;">SS2</tt> but after applying this diff it'll try <tt style="background: #ebebeb; font-size: 13px;">M1</tt> and then <tt style="background: #ebebeb; font-size: 13px;">M2</tt>.<br />
I didn't put font names so that you can use the fonts installed on your machine, I've selected FuraCode for Konsole which doesn't have Persian characters. I have <tt style="background: #ebebeb; font-size: 13px;">IRANSans-Web</tt> as my sansserif fallback font and <tt style="background: #ebebeb; font-size: 13px;">FreeFarsi Monospace</tt> as my monospace fallback font. Before applying this patch Konsole falls back to <tt style="background: #ebebeb; font-size: 13px;">IRANSans-Web</tt> for Persian characters but after applying this patch it falls back to <tt style="background: #ebebeb; font-size: 13px;">FreeFarsi Monospace</tt> which is the correct thing to do.<br />
Let me know if more info is required.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12614">https://phabricator.kde.org/D12614</a></div></div><br /><div><strong>To: </strong>sassanh, Konsole<br /><strong>Cc: </strong>hindenburg, mglb, ahmadsamir, herrold, ngraham<br /></div>