alpha
Login
or
Join now
ptr.pet
/
ghostty
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ghostty
/
src
/
font
/
at
main
6 folders
23 files
Mitchell Hashimoto
Revert "font: add exact glyph protocol constraints"
2mo ago
aab0f807
face
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
opentype
font: exclude libghostty-vt from embedded font tests
2 months ago
res
font: add bitmap font tests for BDF, PCF, and OTB formats Add test coverage for bitmap font rendering using the Spleen 8x16 font in three formats: BDF (Bitmap Distribution Format), PCF (Portable Compiled Format), and OTB (OpenType Bitmap). Tests validate glyph rendering against expected pixel patterns. Addresses #8524.
7 months ago
shaper
address review: update shaper test discover callsites CI on Windows (MSVC) surfaced three remaining callers of the old zero-arg `Discover.init()` in shaper test helpers that the earlier commit missed. Pass `lib` to match the new signature. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
sprite
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
testdata
font: glyf rasterization png comparison
2 months ago
Atlas.zig
Revert "font: add exact glyph protocol constraints" This reverts commit b661adad2ec9e32d739684b3051c733dbcd021ea.
2 months ago
CodepointMap.zig
perf: replace `std.debug.assert` with inlined version See doc comment in `quirks.zig` for reasoning
8 months ago
CodepointResolver.zig
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
Collection.zig
font: Collection.getEntry explicit error set
6 months ago
DeferredFace.zig
address review: update DeferredFace test discover callsites Two more holdouts in DeferredFace.zig test helpers calling Fontconfig.init / CoreText.init with no args; Nix test CI surfaced them for the fontconfig path. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
Glyph.zig
Revert "font: add exact glyph protocol constraints" This reverts commit b661adad2ec9e32d739684b3051c733dbcd021ea.
2 months ago
Metrics.zig
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
SharedGrid.zig
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
SharedGridSet.zig
address review: Discover.init takes a Library across all backends Per review feedback, drop the `if (Discover == Windows)` comptime branches in SharedGridSet and list_fonts by making every backend's `init` take a Library and ignore it when unused. Call sites just do `Discover.init(self.font_lib)` now. Also adds a discovery test for the Windows backend that looks up Arial and checks the returned face has the 'A' codepoint. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
backend.zig
font: add Windows font discovery backend Adds a FreeType-based Discover implementation for Windows that walks the system (C:\Windows\Fonts) and per-user (%LOCALAPPDATA%\Microsoft\Windows\Fonts) font directories, matching descriptors via family_name / SFNT name table and optionally codepoint presence. Wired up as a new .freetype_windows backend which Backend.default() now returns on Windows. Existing freetype-only paths are untouched. With this in place, standard code paths -- +list-fonts, SharedGridSet font-family lookup, CodepointResolver fallback -- work on Windows without any os.tag == .windows branches in the caller. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
discovery.zig
address review: Discover.init takes a Library across all backends Per review feedback, drop the `if (Discover == Windows)` comptime branches in SharedGridSet and list_fonts by making every backend's `init` take a Library and ignore it when unused. Call sites just do `Discover.init(self.font_lib)` now. Also adds a discovery test for the Windows backend that looks up Arial and checks the returned face has the 'A' codepoint. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
embedded.zig
font: add bitmap font tests for BDF, PCF, and OTB formats Add test coverage for bitmap font rendering using the Spleen 8x16 font in three formats: BDF (Bitmap Distribution Format), PCF (Portable Compiled Format), and OTB (OpenType Bitmap). Tests validate glyph rendering against expected pixel patterns. Addresses #8524.
7 months ago
face.zig
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
glyf_rasterize.zig
Revert "font: add exact glyph protocol constraints" This reverts commit b661adad2ec9e32d739684b3051c733dbcd021ea.
2 months ago
glyf_rasterize_png_test.zig
font: glyf rasterization png comparison
2 months ago
library.zig
font: add Windows font discovery backend Adds a FreeType-based Discover implementation for Windows that walks the system (C:\Windows\Fonts) and per-user (%LOCALAPPDATA%\Microsoft\Windows\Fonts) font directories, matching descriptors via family_name / SFNT name table and optionally codepoint presence. Wired up as a new .freetype_windows backend which Backend.default() now returns on Windows. Existing freetype-only paths are untouched. With this in place, standard code paths -- +list-fonts, SharedGridSet font-family lookup, CodepointResolver fallback -- work on Windows without any os.tag == .windows branches in the caller. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
main.zig
font: add glyf rasterizer
2 months ago
nerd_font_attributes.zig
font: reshuffle glyph sizing types to Glyph.zig
2 months ago
nerd_font_codegen.py
Lots of duplicate word typos + typo.
5 months ago
nerd_font_codepoint_tables.py
font(fix): Extract and apply Nerd Font codepoint mapping table (#9142) Fixes #9076 **Before** <img width="128" height="57" alt="Screenshot 2025-10-11 at 00 07 09" src="https://github.com/user-attachments/assets/a6b416d5-dae1-4cea-a836-00640ceaf39b" /> **After** <img width="128" height="57" alt="Screenshot 2025-10-11 at 00 07 31" src="https://github.com/user-attachments/assets/7d2df7b1-4767-4e2d-84d2-8301da5c6602" /> These screenshots show the chevrons mentioned in https://github.com/ghostty-org/ghostty/discussions/7820#discussioncomment-14617170, which should be scaled as a group but were not until this PR. The added code downloads each individual symbol font file from the Nerd Fonts github repo (making sure to get the version corresponding to the vendored `font-patcher.py`) and iterates over all of them to build the correct and complete codepoint mapping table. The table is saved to `nerd_font_codepoint_tables.py`, which `nerd_font_codegen.py` will reuse if possible instead of downloading the font files again. I'm not going to utter any famous last words or anything, but... after this, I don't think the number of remaining issues with icon scaling/alignment is _large._
10 months ago
opentype.zig
font/opentype: add glyf table entry validation We want to have this for the glyph protocol so that we can validate passed glyf data in libghostty without having to link freetype or anything like that.
3 months ago
shape.zig
font: add Windows font discovery backend Adds a FreeType-based Discover implementation for Windows that walks the system (C:\Windows\Fonts) and per-user (%LOCALAPPDATA%\Microsoft\Windows\Fonts) font directories, matching descriptors via family_name / SFNT name table and optionally codepoint presence. Wired up as a new .freetype_windows backend which Backend.default() now returns on Windows. Existing freetype-only paths are untouched. With this in place, standard code paths -- +list-fonts, SharedGridSet font-family lookup, CodepointResolver fallback -- work on Windows without any os.tag == .windows branches in the caller. Co-authored-by: Claude <noreply@anthropic.com>
3 months ago
sprite.zig
font/sprite: add explicit underline cursor Resolves #7651 - uses cursor thickness rather than underline thickness.
1 year ago