git: c37a66937407 - main - Correct font.h comment describing vfnt font maps
Ed Maste
emaste at FreeBSD.org
Mon Dec 28 17:47:46 UTC 2020
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=c37a6693740748d8534ebdb49acbdd05cc21b5f2
commit c37a6693740748d8534ebdb49acbdd05cc21b5f2
Author: Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2020-12-28 16:56:00 +0000
Commit: Ed Maste <emaste at FreeBSD.org>
CommitDate: 2020-12-28 17:47:12 +0000
Correct font.h comment describing vfnt font maps
Commit 41fb06651122 doubled the number of glyph maps in the vfnt format
from 2 to 4 to support double-width characters, but a comment describing
the maps was not updated to match.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
sys/sys/font.h | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/sys/sys/font.h b/sys/sys/font.h
index 73b6d39683a6..f8bf151c5f52 100644
--- a/sys/sys/font.h
+++ b/sys/sys/font.h
@@ -42,11 +42,13 @@
/*
* Fonts.
*
- * Remapping tables are used to map Unicode points to glyphs. They need
- * to be sorted, because vtfont_lookup() performs a binary search. Each
- * font has two remapping tables, for normal and bold. When a character
- * is not present in bold, it uses a normal glyph. When no glyph is
- * available, it uses glyph 0, which is normally equal to U+FFFD.
+ * Fonts support normal and bold weights, and single and double width glyphs.
+ * Mapping tables are used to map Unicode points to glyphs. They are sorted by
+ * code point, and vtfont_lookup() uses this to perform a binary search. Each
+ * font has four mapping tables: two weights times two halves (left/single,
+ * right). When a character is not present in a bold map the glyph from the
+ * normal map is used. When no glyph is available, it uses glyph 0, which is
+ * normally equal to U+FFFD.
*/
enum vfnt_map_type {
More information about the dev-commits-src-main
mailing list