<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Libxft on Benny Simmonds</title>
    <link>https://www.bencode.io/categories/libxft/</link>
    <description>Recent content in Libxft on Benny Simmonds</description>
    <generator>Hugo -- 0.149.1</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 07 Dec 2021 21:09:36 +0000</lastBuildDate>
    <atom:link href="https://www.bencode.io/categories/libxft/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>st emoji support with libXft BGRA glyph patch</title>
      <link>https://www.bencode.io/posts/libxft-bgra/</link>
      <pubDate>Tue, 07 Dec 2021 21:09:34 +0000</pubDate>
      <guid>https://www.bencode.io/posts/libxft-bgra/</guid>
      <description>&lt;h1 id=&#34;the-problem&#34;&gt;The Problem&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://st.suckless.org/&#34;&gt;st&lt;/a&gt; crashes whenever an emoji needs to be rendered.&lt;/p&gt;
&lt;p&gt;It turns out to be an issue with the underlying font rendering library &lt;code&gt;libXft&lt;/code&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;libXft is the client side font rendering library, using libfreetype, libX11, and the X Render extension to display anti-aliased text.&lt;/p&gt;&lt;/blockquote&gt;
&lt;h1 id=&#34;the-solution&#34;&gt;The Solution&lt;/h1&gt;
&lt;p&gt;In its current offical mainline form &lt;code&gt;libXft&lt;/code&gt; does not support rendering images.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&#34;https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/1&#34;&gt;patch&lt;/a&gt; by Maxime Coste exists to add support for BGRA glyphs and scaling, effectively enabling emoji rendering support.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
