|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#######
#
# E-scripts on fonts.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
# An introduction to eev can be found here:
#
# (find-eev-quick-intro)
# http://anggtwu.net/eev-intros/find-eev-quick-intro.html
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://anggtwu.net/e/fonts.e>
# or at <http://anggtwu.net/e/fonts.e.html>.
# See also <http://anggtwu.net/emacs.html>,
# <http://anggtwu.net/.emacs[.html]>,
# <http://anggtwu.net/.zshrc[.html]>,
# <http://anggtwu.net/escripts.html>,
# and <http://anggtwu.net/>.
#
#######
# «.firamono-latex» (to "firamono-latex")
# «.firamono-html» (to "firamono-html")
# «.FiraCode» (to "FiraCode")
# (find-es "x" "xlsfonts")
# (find-fline "~/LOGS/2024sep27.emacs2" "xterm*faceName")
# (font "Inconsolata 22")
# (font "Monospace 20")
# (font "Monospace Bold 20")
# (set-frame-font "Noto Mono 18")
# Font recommendations:
# (find-es "emacs" "emacs-humanities")
# https://lists.gnu.org/archive/html/emacs-humanities/2025-03/msg00002.html lots of links
https://www.knitgrotesk.com/character-set/
#####
#
# firamono-latex
# 2026sep21
#
#####
# «firamono-latex» (to ".firamono-latex")
# (find-google-links "how do i typeset box drawing characters like ╔ in latex")
# (find-LATEX "2026testfira.tex")
# (find-es "tex" "fira")
# (find-es "tex" "firamono")
#####
#
# firamono-html
# 2026sep21
#
#####
# «firamono-html» (to ".firamono-html")
# (find-google-links "how do i use firamono in an html page")
# (find-google-links "how do i use firamono in pre blocks in html")
# (find-google-links "how do I use firamono in an html without connecting to google")
# (find-google-links "how do I inspect a woff2 font")
# (find-google-links "fira mono woff2")
# https://www.popwebdesign.net/popart_blog/en/2026/09/how-to-use-font-display-swap-to-optimize-web-fonts-and-fix-layout-shift/
# https://developers.google.com/fonts/docs/css2
# (find-es "html" "link")
#-- (ee-copy-rest-3 nil "#-- END" "/tmp/fi.html")
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fira Mono Example</title>
<!-- Import Fira Mono from Google Fonts -->
<link rel="preconnect" href="https://googleapis.com">
<link rel="preconnect" href="https://gstatic.com" crossorigin>
<link rel="stylesheet"
href="https://googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap">
<style>
pre { font-family: 'Fira Mono', monospace; }
</style>
</head>
<body>
<h1>Displaying Code with Fira Mono</h1>
<pre>
const greeting = "Hello, World!";
console.log(greeting);
function add(a, b) {
return a + b;
}
</pre>
</body>
</html>
#-- END
#-- (ee-copy-rest-3 nil "#-- END" "/tmp/fi.html")
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fira Mono Example</title>
<!-- Import Fira Mono from Google Fonts -->
<link rel="preconnect" href="https://googleapis.com">
<link rel="preconnect" href="https://gstatic.com" crossorigin>
<link rel="stylesheet"
href="https://googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap">
<style>
/* Apply the font to pre blocks */
pre {
font-family: 'Fira Mono', monospace;
background-color: #f4f4f4;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
}
</style>
</head>
<body>
<h1>Displaying Code with Fira Mono</h1>
<pre>
const greeting = "Hello, World!";
console.log(greeting);
function add(a, b) {
return a + b;
}
</pre>
</body>
</html>
#-- END
#####
#
# FiraCode
# 2026sep06
#
#####
# «FiraCode» (to ".FiraCode")
# https://github.com/tonsky/FiraCode
# https://github.com/tonsky/FiraCode/wiki/LaTeX-instructions
# (find-git-links "https://github.com/tonsky/FiraCode" "firacode")
# (code-c-d "firacode" "~/usrc/FiraCode/")
# (find-firacodesh "find *")
# (find-firacodefile "")
# (find-firacodefile "README.md")
# (find-firacodefile "Makefile")
# (find-sh "locate firacode")
# (find-sh "locate FiraCode-")
* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
# rm -Rfv ~/usrc/FiraCode/
cd ~/usrc/
git clone https://github.com/tonsky/FiraCode
cd ~/usrc/FiraCode/
make
# (code-c-d "firacode" "~/usrc/FiraCode/")
# (find-firacodefile "")
docker
# Local Variables:
# coding: utf-8-unix
# End: