Hello, new guy here. My name is Simon Gomizelj and I recently took it upon myself to try to write a terminal emulator build on xcb. I need some help.<div><br></div><div>I&#39;ve got much of the plumbing done on the terminal side of things, but I&#39;m having issues with the xcb side of things. Right now I&#39;m trying to print a series of lines of text with xcb as a test. However I can&#39;t seem to get a correct character height querying the font. The following code is returning these values:<div>
<div><br><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>gc = getfontgc(w, &quot;-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*&quot;);</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fontcookie = xcb_query_font(w-&gt;conn, gc);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>fontreply = xcb_query_font_reply(w-&gt;conn, fontcookie, NULL);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>info = xcb_query_font_char_infos(fontreply);</div>
<div><br></div><div>info-&gt;ascent is 8, should be 10</div><div>info-&gt;descent is 0, should be 2</div><div><br></div><div>The comparable Xlib code is from the suckless terminal and is as follows</div><div><br></div><div>
<span class="Apple-tab-span" style="white-space: pre; ">        </span>#define FONT &quot;-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*&quot;</div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>dc.font = XLoadQueryFont(xw.dis, FONT);</div>
<div><br></div><div>I apologize for any mis-formatting, this is my first mailing list post ever. And for those interested, the project is hosted here: <a href="http://github.com/simongmzlj/carbon">http://github.com/simongmzlj/carbon</a>. It currently doesn&#39;t build or do anything useful :).</div>
<div><br></div><div>Much thanks for your time.</div><div><br></div></div><div><br></div></div></div></div></div>