Adding copyurl and disable-fonts patch
This commit is contained in:
parent
ec58f77b6b
commit
35e6403c69
9 changed files with 258 additions and 3 deletions
10
x.c
10
x.c
|
|
@ -57,9 +57,13 @@ static void zoom(const Arg *);
|
|||
static void zoomabs(const Arg *);
|
||||
static void zoomreset(const Arg *);
|
||||
|
||||
#include "patch/include.h"
|
||||
|
||||
/* config.h for applying patches and the configuration. */
|
||||
#include "config.h"
|
||||
|
||||
//#include "patch/include.c"
|
||||
|
||||
/* XEMBED messages */
|
||||
#define XEMBED_FOCUS_IN 4
|
||||
#define XEMBED_FOCUS_OUT 5
|
||||
|
|
@ -1005,17 +1009,23 @@ xloadfonts(char *fontstr, double fontsize)
|
|||
win.ch = ceilf(dc.font.height * chscale);
|
||||
|
||||
FcPatternDel(pattern, FC_SLANT);
|
||||
#if !DISABLE_ITALIC_FONTS_PATCH
|
||||
FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
|
||||
#endif // DISABLE_ITALIC_FONTS_PATCH
|
||||
if (xloadfont(&dc.ifont, pattern))
|
||||
die("can't open font %s\n", fontstr);
|
||||
|
||||
FcPatternDel(pattern, FC_WEIGHT);
|
||||
#if !DISABLE_BOLD_FONTS_PATCH
|
||||
FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
|
||||
#endif // DISABLE_BOLD_FONTS_PATCH
|
||||
if (xloadfont(&dc.ibfont, pattern))
|
||||
die("can't open font %s\n", fontstr);
|
||||
|
||||
FcPatternDel(pattern, FC_SLANT);
|
||||
#if !DISABLE_ROMAN_FONTS_PATCH
|
||||
FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN);
|
||||
#endif // DISABLE_ROMAN_FONTS_PATCH
|
||||
if (xloadfont(&dc.bfont, pattern))
|
||||
die("can't open font %s\n", fontstr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue