💾 Archived View for g.nubecita.online › emacs › fonts.org captured on 2023-07-22 at 16:21:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

+property: header-args :results silent

- Support for different styles

- *bold*; /italic, slanted or oblique/; and =monospaced=

- oblique and not italic

- thin/normal

- Not same nor similar glyphs for two symbols.

For instance, "0 O o" are different symbols but some fonts tend to make them very similar in appearance.

List of some interesting fonts with notes.

- Webpage :: http://sourcefoundry.org/hack/

- Source :: https://github.com/source-foundry/Hack

- License :: MIT

+begin_quote

A typeface designed for source code.

Hack is designed to be a workhorse typeface for source code. It has deep roots in the free, open source typeface community and expands upon the contributions of the Bitstream Vera & DejaVu projects. The large x-height + wide aperture + low contrast design make it legible at commonly used source code text sizes with a sweet spot that runs in the 8 - 14 range.

- From the Hack source Web page.

+end_quote

Support for:

- Regular, bold, italic, bold italic.

- No similar glyphs.

- No thin font.

The \LaTeX font!

- Webpage :: https://input.djr.com/

- License :: Custom license.

+begin_quote

Fonts for code from DJR & Font Bureau

Input is a flexible system of fonts designed specifically for code by David Jonathan Ross. It offers both monospaced and proportional fonts, all with a large range of widths, weights, and styles for richer code formatting.

+end_quote

Fonts in Emacs can be changed by setting the default font.

+BEGIN_SRC emacs-lisp

(set-face-attribute 'default nil :font "Hack" :height 110)

+END_SRC

+BEGIN_SRC emacs-lisp

(set-face-attribute 'org-level-1 nil

:height (* nano-font-size 14)

:weight 'bold)

(set-face-attribute 'org-level-2 nil

:height (* nano-font-size 12)

:weight 'medium)

(set-face-attribute 'org-level-3 nil

:height (* nano-font-size 10))

(set-face-attribute 'org-tag nil

:height (* nano-font-size 10)

:weight 'medium)

+END_SRC

+BEGIN_SRC emacs-lisp

(set-face-attribute 'org-tables nil

:font "Hack"

:height 110)

+END_SRC

+BEGIN_SRC emacs-lisp

(set-face-attribute 'org-block nil

:font "Hack"

:height 110)

+END_SRC

It is possible to change the font according to the current task. This code will let you select the font and other configurations according to the task you are about to do.

- [[https://blakewatson.com/journal/almost-monospaced-the-perfect-fonts-for-writing/]["Almost monospaced: the perfect fonts for writing"]] by Blake Watson. November 2022.

- [[https://irreal.org/blog/?p=10941]["Almost monospaced fonts"]] by jcs. November 2022.

- Monospaced font ::

- Proportinal font ::

- Didone :: A Serif subtype. See [[https://en.wikipedia.org/wiki/Didone_(typography)][Wikipedia Article]].

- Serif :: Typefaces with small line or stroke attached to the end of a larger stroke. See [[https://en.wikipedia.org/wiki/Serif][Wikipedia Article]].

- Sans Serif :: Typefaces without small line or stroke attached to the end of a larger stroke. See [[https://en.wikipedia.org/wiki/Sans-serif][Wikipedia Article]].

- Roman ::

+name: before-save

+BEGIN_SRC emacs-lisp :results silent

(require 'ox-gemini)

(org-export-to-file 'gemini "fonts.gmi")

+END_SRC

----------------------------------------------------------------------

+TITLE: Fonts in Emacs

+SUBTITLE:

+AUTHOR: Christian Gimenez

+DATE: 11 nov 2022

+EMAIL:

+DESCRIPTION:

+KEYWORDS:

+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM

+STARTUP: inlineimages hidestars content hideblocks entitiespretty

+STARTUP: indent fninline latexpreview

+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t <:t

+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc

+OPTIONS: tex:imagemagick

+TODO: TODO(t!) CURRENT(c!) PAUSED(p!) | DONE(d!) CANCELED(C!@)

-- Export

+LANGUAGE: en

+LINK_UP:

+LINK_HOME:

+EXPORT_SELECT_TAGS: export

+EXPORT_EXCLUDE_TAGS: noexport

#+export_file_name: index

-- HTML Export

+INFOJS_OPT: view:info toc:t ftoc:t ltoc:t mouse:underline buttons:t path:libs/org-info.js

+HTML_LINK_UP: index.html

+HTML_LINK_HOME: index.html

+XSLT:

-- For ox-twbs or HTML Export

#+HTML_HEAD: <link href="libs/bootstrap.min.css" rel="stylesheet">

-- -- LaTeX-CSS

#+HTML_HEAD: <link href="css/style-org.css" rel="stylesheet">

#+HTML_HEAD: <script src="libs/jquery.min.js"></script>

#+HTML_HEAD: <script src="libs/bootstrap.min.js"></script>

-- LaTeX Export

#+LATEX_CLASS: article

+latex_compiler: xelatex

#+latex_class_options: [12pt, twoside]

+latex_header: \usepackage{csquotes}

#+latex_header: \usepackage[spanish]{babel}

#+latex_header: \usepackage[margin=2cm]{geometry}

#+latex_header: \usepackage{fontspec}

-- biblatex

+latex_header: \usepackage[backend=biber, style=alphabetic, backref=true]{biblatex}

+latex_header: \addbibresource{tangled/biblio.bib}

-- -- Tikz

#+LATEX_HEADER: \usepackage{tikz}

#+LATEX_HEADER: \usetikzlibrary{arrows.meta}

#+LATEX_HEADER: \usetikzlibrary{decorations}

#+LATEX_HEADER: \usetikzlibrary{decorations.pathmorphing}

#+LATEX_HEADER: \usetikzlibrary{shapes.geometric}

#+LATEX_HEADER: \usetikzlibrary{shapes.symbols}

#+LATEX_HEADER: \usetikzlibrary{positioning}

#+LATEX_HEADER: \usetikzlibrary{trees}

#+LATEX_HEADER_EXTRA:

-- Info Export

+TEXINFO_DIR_CATEGORY: A category

+TEXINFO_DIR_TITLE: Fonts in Emacs: (fonts)

+TEXINFO_DIR_DESC: One line description.

+TEXINFO_PRINTED_TITLE: Fonts in Emacs

+TEXINFO_FILENAME: fonts.info

Local Variables:

org-hide-emphasis-markers: t

org-use-sub-superscripts: "{}"

fill-column: 80

visual-line-fringe-indicators: t

ispell-local-dictionary: "british"

org-latex-default-figure-position: "tbp"

eval: (add-hook 'before-save-hook (lambda () (org-babel-ref-resolve "before-save")) nil t)

End: