[dev] [st] crash on font resize (patch inside)

2015-02-14 Thread Nils Reuße
hi folks, i found a bug in st (latest git): if you keep downsizing your fontsize until either xw.ch or xw.cw gets 0, st crashes, because there is an unchecked division in cresize. my patch fixes the problem, but i haven't checked for a better solution. nils diff --git a/st.c b/st.c index 1

Re: [dev] [st] crash on font resize (patch inside)

2015-02-15 Thread Nils Reuße
On 14.02.2015 22:55, Nils Reuße wrote: hi folks, i found a bug in st (latest git): if you keep downsizing your fontsize until either xw.ch or xw.cw gets 0, st crashes, because there is an unchecked division in cresize. my patch fixes the problem, but i haven't checked for a better sol

Re: [dev] [st] crash on font resize (patch inside)

2015-02-15 Thread Nils Reuße
On 15.02.2015 11:01, k...@shike2.com wrote: diff --git a/st.c b/st.c index 1deb7bc..547ddc9 100644 --- a/st.c +++ b/st.c @@ -2992,7 +2992,7 @@ xloadfonts(char *fontstr, double fontsize) { if(!pattern) die("st: can't open font %s\n", fontstr); - if(fontsize > 0

Re: [dev] [st] can't use Xterm font

2015-02-23 Thread Nils Reuße
On 23.02.2015 17:48, Greg Reagle wrote: On Sat, Feb 21, 2015, at 10:24 AM, Vampyrah Broadcasting wrote: I want to use Xterms font in st. The Arch Wiki page about Xterm ( https://wiki.archlinux.org/index.php/Xterm ) says that xterm uses the font -misc-fixed-medium-r-semicondensed--13-120-75-75-c-

[dev] [st] keep some glyph modes for the cursor

2017-02-06 Thread Nils Reuße
st currently does not keep any mode for the cursor that was active in the underlying glyph (e.g. italic text), the mode is always ATTR_NULL [1]. At [2] you can find a screenshot that shows the implications. Other terminals (at least vte-based, such as XFCE-terminal) keep some modes for the cur

[dev] [st] parse relative font size instead of pixelsize

2013-12-17 Thread Nils Reuße
Hi suckless@, i tried to set a font and fontsize in config.h with the xft notation FONT-SIZE: static char font[] = "Source Code Pro Medium-18:style=Regular"; The font was recognized, but not the font size, defaulting to 12. The same was true when i used the size attribute: static

Re: [dev] [st] parse relative font size instead of pixelsize

2013-12-17 Thread Nils Reuße
On 12/17/2013 10:06 AM, Nils Reuße wrote: Hi suckless@, i tried to set a font and fontsize in config.h with the xft notation FONT-SIZE: static char font[] = "Source Code Pro Medium-18:style=Regular"; The font was recognized, but not the font size, defaulting to 12. The sam