Render struck-out attribute
authorAnders Eurenius <aes@spotify.com>
Sat, 21 Jun 2014 18:32:34 +0000 (20:32 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 27 Jun 2014 12:07:22 +0000 (14:07 +0200)
commit1fc4afd1e6609732178369c7f17c917204aad4cc
tree7686cbd590927024c3f6229aa2c1358c1024cdb8
parent21bd4f4f9dce4dd19f218965e5a223c93a5a0fec
Render struck-out attribute

Implement crossed-out text with an XftDrawRect call, similar to how
underline is implemented. The line is drawn at 2/3 of the font ascent,
which seems to work nicely in practice.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
st.c