Documentation
¶
Overview ¶
Command fontprobe reports what two independent font stacks see in one font file: github.com/gogpu/gg/text, which the gogpu backend draws with, and golang.org/x/image/font/sfnt, which the X11 and Wayland backends draw with.
It exists because a .notdef box on screen is ambiguous. The font may lack the glyph, gg may pick the wrong subfont out of a .ttc collection, or gg may find the glyph and fail to rasterise it. Those need different fixes and two of them belong upstream, so the probe prints the glyph index each library resolves for the same rune and lets the disagreement point at the layer.
Usage:
go run ./cmd/fontprobe /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc go run ./cmd/fontprobe 'C:\Windows\Fonts\msgothic.ttc' 18
Click to show internal directories.
Click to hide internal directories.