[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-humanities] Optical Size Adjustment of Variable Fonts in Emac
Re: [emacs-humanities] Optical Size Adjustment of Variable Fonts in Emacs
Fri, 09 Apr 2021 09:05:16 +0300
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
On 2021-04-08, 12:26 -0700, Oliver Taylor via Emacs-humanities
> Most variable width fonts are optically smaller (meaning they look
> smaller) than their monospace counterparts at the same point size, even
> those that are designed to be used together.
Thanks for sharing!
Just a note on this quote from your post:
> You may also want to add your own hooks for modes that use
> variable-width fonts but don't use buffer-face-mode (elfeed).
That is controlled by the built-in Simple HTML Renderer (shr.el),
specifically the variable 'shr-use-fonts' which is set to non-nil by
default. Both Elfeed and EWW use variable-pitch because of that.
> I’ve never created a package before and I’m sure my code could do with a
> great deal of improvement/standardization.
No worries: the linter will help you address packaging-related issues.
Below I append an Elisp package template that you can use.
If you are an 'M-x flymake-mode' user, you can enable packaging-related
feedback with the 'package-lint-flymake' library (there is also a
flycheck variant). It just needs this:
(add-hook 'flymake-diagnostic-functions #'package-lint-flymake)
The template of a file named 'my-package-name.el':
;;; my-package-name.el --- SHORT PACKAGE DESCRIPTION -*- lexical-binding: t
;; Copyright (C) 2021 My name
;; Author: My name <firstname.lastname@example.org>
;; URL: https://link-to-my-package
;; Version: 0.1.0
;; Package-Requires: ((emacs "27.1"))
;; This file is NOT part of GNU Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;; My commentary.
;;; my-package-name.el ends here
Finally, you may evaluate this form to read the Elisp manual's chapter
on the matter:
(info "(elisp) Packaging")