kkk-font.el 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ;;; kkk-font.el --- Setting Fonts -*- lexical-binding: t; -*-
  2. ;; Copyright (C) 2023 Vinicius Teshima <vini.tes@pm.me>
  3. ;; Author: Vinicius Teshima <vini.tes@pm.me>
  4. ;; This program is free software; you can redistribute it and/or modify
  5. ;; it under the terms of the GNU General Public License as published by
  6. ;; the Free Software Foundation, either version 3 of the License, or
  7. ;; (at your option) any later version.
  8. ;; This program is distributed in the hope that it will be useful,
  9. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. ;; GNU General Public License for more details.
  12. ;; You should have received a copy of the GNU General Public License
  13. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. ;;; Commentary:
  15. ;; Setting My Fonts Config
  16. ;;; Code:
  17. (defconst kkk-font-default-font
  18. "Fantasque Sans Mono"
  19. "Default Font.")
  20. (defconst kkk-font-default-font-size
  21. 100
  22. "Default Font.")
  23. (defconst kkk-font-fixed-font
  24. "Fantasque Sans Mono"
  25. "Monospaced Font.")
  26. (defconst kkk-font-fixed-font-size
  27. 100
  28. "Monospaced Font.")
  29. (defconst kkk-font-variable-font
  30. "Cantarell"
  31. "Variable spaced Font.")
  32. (defconst kkk-font-variable-font-size
  33. 100
  34. "Variable spaced Font Size.")
  35. (defun kkk-font-set ()
  36. "Set my prefered fonts."
  37. (interactive)
  38. ;; Set default Font
  39. (set-face-attribute 'default nil
  40. :font kkk-font-default-font
  41. :height kkk-font-default-font-size)
  42. ;; (set-face-attribute 'default nil :font "Fira Code" :height 150)
  43. ;; Set monospaced Font
  44. (set-face-attribute 'fixed-pitch nil
  45. :font kkk-font-fixed-font
  46. :height kkk-font-fixed-font-size)
  47. ;; (set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 120)
  48. ;; Set variable Font
  49. (set-face-attribute 'variable-pitch nil
  50. :font kkk-font-variable-font
  51. :weight 'bold
  52. :height kkk-font-variable-font-size)
  53. (set-face-attribute 'mode-line nil :height 80)
  54. (set-face-attribute 'mode-line-inactive nil :height 60 :slant 'oblique))
  55. (provide 'kkk-font)
  56. ;;; kkk-font.el ends here