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've got much of the plumbing done on the terminal side of things, but I'm having issues with the xcb side of things. Right now I'm trying to print a series of lines of text with xcb as a test. However I can'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, "-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*");</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fontcookie = xcb_query_font(w->conn, gc);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>fontreply = xcb_query_font_reply(w->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->ascent is 8, should be 10</div><div>info->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 "-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*"</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'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>