Revert "feat(desktop): try to fix font sizes"

This reverts commit 739d92c5ed.
This commit is contained in:
Pavel Korytov 2023-02-17 21:07:13 +03:00
parent 739d92c5ed
commit bd718b254d
6 changed files with 35 additions and 65 deletions

View file

@ -6,7 +6,7 @@ font:
family: JetBrainsMono Nerd Font
style: Regular
size: 8
size: 10
env:
TERM: xterm-256color

View file

@ -1,9 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<edit name="pixelsize"><double>16</double></edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>

View file

@ -1011,7 +1011,7 @@ influence of C1 on the result."
(when (display-graphic-p)
(if (x-list-fonts "JetBrainsMono Nerd Font")
(set-frame-font "JetBrainsMono Nerd Font 13" nil t)
(set-frame-font "JetBrainsMono Nerd Font 10" nil t)
(message "Install JetBrainsMono Nerd Font!")))
(use-package ligature

View file

@ -748,7 +748,7 @@ font:
family: JetBrainsMono Nerd Font
style: Regular
size: 8
size: 10
env:
TERM: xterm-256color

View file

@ -86,8 +86,7 @@ However, I'd rather use the =Xresources= file wherever possible. Here is the cod
#+end_src
So, whenever a program is capable of reading =.Xresources=, it will get colors from there, otherwise, it will get colors from noweb expressions in the literate config. Thus, in both cases, the color is set in a single Org Mode table.
*** OFF Fonts
CLOSED: [2023-02-17 Fri 20:36]
*** Fonts
Also, Xresources are used to set =Xft= settings. Unfortunately, the DPI setting has to be unique for each machine, which means I cannot commit =Xresources= to the repo.
#+NAME: get-dpi
@ -100,7 +99,7 @@ Also, Xresources are used to set =Xft= settings. Unfortunately, the DPI setting
#+end_src
#+begin_src conf-xdefaults :noweb yes :tangle ~/.Xresources
! Xft.dpi: <<get-dpi()>>
Xft.dpi: <<get-dpi()>>
#+end_src
** Themes
A few programs I use to customize the apperance are listed below.
@ -119,39 +118,13 @@ A few programs I use to customize the apperance are listed below.
Net/ThemeName "Matcha-dark-azul"
Net/IconThemeName "Papirus-Dark"
Gtk/DecorationLayout "menu:minimize,maximize,close"
Gtk/FontName "Sans 14"
Gtk/FontName "Sans 10"
Gtk/MonospaceFontName "JetBrainsMono Nerd Mono 12"
Gtk/CursorThemeName "Adwaita"
Xft/Antialias 1
Xft/Hinting 0
Xft/HintStyle "hintnone"
#+end_src
** Fontconfig
#+begin_src xml ~/.config/fontconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<edit name="pixelsize"><double>16</double></edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>DejaVu Sans Mono</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>DejaVu Sans</string>
</edit>
</match>
</fontconfig>
#+end_src
** MIME
Setting the default MIME types
#+begin_src conf-unix :tangle ~/.config/mimeapps.list

View file

@ -1632,7 +1632,7 @@ References:
#+begin_src emacs-lisp
(when (display-graphic-p)
(if (x-list-fonts "JetBrainsMono Nerd Font")
(set-frame-font "JetBrainsMono Nerd Font 13" nil t)
(set-frame-font "JetBrainsMono Nerd Font 10" nil t)
(message "Install JetBrainsMono Nerd Font!")))
#+end_src