* st + patches and config
       
   URI git clone git://git.codevoid.de/st-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 0394c6390b5fd979cda515b3fefb5ede556861a8
   DIR parent 0b5c2b0108624c1a91d4ef781674cd9cfbce716c
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Sun,  7 Apr 2019 11:50:59 +0200
       
       add disable italic bold patch
       
       Diffstat:
         M config.h                            |      10 +++++-----
         M config.mk                           |       2 +-
         A patches/st-disable-bold-italic-fon… |      70 +++++++++++++++++++++++++++++++
       
       3 files changed, 76 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/config.h b/config.h
       @@ -5,7 +5,7 @@
         *
         * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
         */
       -static char *font = "Fira Mono:pixelsize=22";
       +static char *font = "DejaVu Sans Mono-24";
        static int borderpx = 2;
        static int borderperc = 20;
        #define histsize 2000
       @@ -26,8 +26,8 @@ char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
        char *vtiden = "\033[?6c";
        
        /* Kerning / character bounding-box multipliers */
       -static float cwscale = 0.95;
       -static float chscale = 0.95;
       +static float cwscale = 1;
       +static float chscale = 1;
        
        /*
         * word delimiter string
       @@ -110,7 +110,7 @@ static const char *colorname[] = {
        
                /* more colors can be added after 255 to use with DefaultXX */
                "#FF0000",
       -        "#000000",
       +        "#181818",
        };
        
        
       @@ -130,7 +130,7 @@ static unsigned int defaultrcs = 257;
         * 6: Bar ("|")
         * 7: Snowman ("☃")
         */
       -static unsigned int cursorshape = 6;
       +static unsigned int cursorshape = 2;
        
        /*
         * Default columns and rows numbers
   DIR diff --git a/config.mk b/config.mk
       @@ -14,7 +14,7 @@ X11LIB = /usr/X11R6/lib
        INCS = -I$(X11INC) \
               `pkg-config --cflags fontconfig` \
               `pkg-config --cflags freetype2`
       -LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
       +LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
               `pkg-config --libs fontconfig` \
               `pkg-config --libs freetype2`
        
   DIR diff --git a/patches/st-disable-bold-italic-fonts.diff b/patches/st-disable-bold-italic-fonts.diff
       @@ -0,0 +1,70 @@
       +From 1e932656e6ca3a50ec67cafabdb08d711635c504 Mon Sep 17 00:00:00 2001
       +From: Alex Kozadaev <snobb@gmx.com>
       +Date: Fri, 24 Mar 2017 12:11:47 +0000
       +Subject: [PATCH] disable bold, italic and roman fonts globally
       +
       +---
       + config.def.h |  6 ++++++
       + x.c          | 14 +++++++++++---
       + 2 files changed, 17 insertions(+), 3 deletions(-)
       +
       +diff --git a/config.def.h b/config.def.h
       +index 877afab..87c4534 100644
       +--- a/config.def.h
       ++++ b/config.def.h
       +@@ -6,6 +6,12 @@
       +  * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
       +  */
       + char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
       ++
       ++/* disable bold, italic and roman fonts globally */
       ++int disablebold = 0;
       ++int disableitalic = 0;
       ++int disableroman = 0;
       ++
       + int borderpx = 2;
       + 
       + /*
       +diff --git a/x.c b/x.c
       +index 743b084..23e4f0a 100644
       +--- a/x.c
       ++++ b/x.c
       +@@ -158,6 +158,11 @@ typedef struct {
       + static Fontcache frc[16];
       + static int frclen = 0;
       + 
       ++/* declared in config.h */
       ++extern int disablebold;
       ++extern int disableitalic;
       ++extern int disableroman;
       ++
       + void
       + getbuttoninfo(XEvent *e)
       + {
       +@@ -828,17 +833,20 @@ xloadfonts(char *fontstr, double fontsize)
       +         win.ch = ceilf(dc.font.height * chscale);
       + 
       +         FcPatternDel(pattern, FC_SLANT);
       +-        FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
       ++        if (!disableitalic)
       ++                FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
       +         if (xloadfont(&dc.ifont, pattern))
       +                 die("st: can't open font %s\n", fontstr);
       + 
       +         FcPatternDel(pattern, FC_WEIGHT);
       +-        FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
       ++        if (!disablebold)
       ++                FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
       +         if (xloadfont(&dc.ibfont, pattern))
       +                 die("st: can't open font %s\n", fontstr);
       + 
       +         FcPatternDel(pattern, FC_SLANT);
       +-        FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN);
       ++        if (!disableroman)
       ++                FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN);
       +         if (xloadfont(&dc.bfont, pattern))
       +                 die("st: can't open font %s\n", fontstr);
       + 
       +-- 
       +2.1.4
       +