font display fixes

This commit is contained in:
Luke Smith 2020-02-07 22:44:19 -05:00
parent f0b7aeeb53
commit 4c05d1cef3
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 6 additions and 4 deletions

View file

@ -20,7 +20,7 @@ The [suckless terminal (st)](https://st.suckless.org/) with some additional feat
+ Compatibility with `Xresources` and `pywal` for dynamic colors. The `Xdefaults` file shows a usage example. + Compatibility with `Xresources` and `pywal` for dynamic colors. The `Xdefaults` file shows a usage example.
+ Default [gruvbox](https://github.com/morhetz/gruvbox) colors otherwise. + Default [gruvbox](https://github.com/morhetz/gruvbox) colors otherwise.
+ Transparency/alpha, which is also adjustable from your `Xresources`. + Transparency/alpha, which is also adjustable from your `Xresources`.
+ Default font is system "mono" at 16pt, meaning the font will match your system font. + Default font is system "mono" at 14pt, meaning the font will match your system font.
## Other st patches ## Other st patches
@ -70,10 +70,12 @@ To be clear about the color settings:
Note that when you run `wal`, it will negate the transparency of existing windows, but new windows will continue with the previously defined transparency. Note that when you run `wal`, it will negate the transparency of existing windows, but new windows will continue with the previously defined transparency.
## Crashing error ## Notes on Emojis and Special Characters
If st crashes when viewing emojis, install [libxft-bgra](https://aur.archlinux.org/packages/libxft-bgra/) from the AUR. If st crashes when viewing emojis, install [libxft-bgra](https://aur.archlinux.org/packages/libxft-bgra/) from the AUR.
Note that some special characters may appear truncated if too wide. You might want to manually set your prefered emoji/special character font to a lower size in the `config.h` file to avoid this. By default, JoyPixels is used at a smaller size than the usual text.
## Contact ## Contact
- Luke Smith <luke@lukesmith.xyz> - Luke Smith <luke@lukesmith.xyz>

View file

@ -5,8 +5,8 @@
* *
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "mono:pixelsize=16:antialias=true:autohint=true"; static char *font = "mono:pixelsize=14:antialias=true:autohint=true";
static char *font2[] = { "Inconsolata for Powerline:pixelsize=16:antialias=true:autohint=true" }; static char *font2[] = { "JoyPixels:pixelsize=10:antialias=true:autohint=true" };
static int borderpx = 2; static int borderpx = 2;
/* /*