-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Support for Font Ligatures using Harfbuzz on Linux #2677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
2d59156
Add harfbuzz-freetype support
ab620c9
Fix cargo.lock
anirudhb bc7d5e4
Refine harfbuzz shaping more, now vaguely resembles the real text.
anirudhb 1218fab
Fix clippy errors
anirudhb a2ab0cc
Break everything
anirudhb f28f6fe
Rendering is normal but font ligatures still don't work
5df92b4
whitespace funky.
79facbc
Tried setting scale and ppem but it didn't change anything.
662fbe5
Switch to harfbuzz_rs and change GlyphKey to use a char or glyph_index
e1e33c8
Looking into why whitespace is rendering is incorrectly
a4084bc
Place holder commit to check something in master. Just more debugging…
146f824
Replace sequence of maps with an iterator that produces text runs.
a3f8d65
Created new TextRun struct to represent the idea of a run of text tha…
87df12b
Create render_text_run function on Renderer, this pushes call to hb s…
a54de7b
cache now exposes shape method that calls underlying rasterizer shape…
03daff8
Cleaned up opt_pair impl
dea2a41
Remove cloning of rc.inner by introducing RunStart struct that hold m…
09a6f9b
Store string of rendered chars and zero width chars in text run.
88f334d
Replace render_string's calls to render_cell with call to render_text…
09755da
Clean up warning and remove some code that is no longer used.
7c3896b
Clean up some of the code that is no longer needed and swap GlyphKey …
dd69ce6
Fix build with hb-ft feature turned off.
cf777a1
Clean up superfluous changes from rustfmt that clutter PR.
d3513f3
Continuing clean up of PR.
a32a835
Removed HbError and related code. Fixed errors were chars were being …
de83c0b
Added documentation to the text_run module.
4bfedf0
Further clean up to reduce code in PR.
54c3c97
Merge branch 'master' into font-ligatures
f1b5388
Fix build error in cursor.rs when hb-ft feautre is off
d970528
Merge branch 'font-ligatures' of https://github.com/thunderseethe/ala…
b3b8a40
Update Cargo.lock to 0.2.60 inline with main repo lock file
244a3a6
Remove hb-ft from default feature list in alacritty_terminal
84c62e7
Resolve bug with strikethrough and underlining. Add logic in TextRunI…
6447ef8
Able to fallback to loading a font if shaping fails to find a glyph. …
5f53cc4
Resolved issue with cursor not rendering, need to load an explicit gl…
70024db
Wide characters now render properly. Last item is to look at cleaning…
2935bf4
Resolve clippy error, remove hb-ft feature from default list to hopef…
d2076ae
Add use_font_ligatures conifg option, toggles clig and liga harfbuzz …
d6287c3
Merge branch 'master' into font-ligatures
cc34439
Merge branch 'master' into font-ligatures
3ceaf9c
Moved text_run mod to it's own folder, fixed update_lines_text_run() …
ef3a5a9
Ran formatter over new changes in code. Added line to CHANGELOG.md
677a439
Merge branch 'master' into font-ligatures
73e8a88
Resolve merge conflict in rects.rs
d04e706
Merge in latest changes to rects (now lines).
e392c88
Fix clippy errors. Remove extraneous parameters from lines.update() f…
3f1f25d
Remove "hb-ft" from default feature list.
499fe03
Cargo fmt code, fix residual clippy errors in ansi.rs
e423a08
Reduce scope of hb-ft feature, replace with linux toggled cfg
922cd41
Resolving review comments in text_run and ft
c7c6341
Run fmt over refactored code.
549acfc
Change cell_iter() -> cells() at unchanged callsites.
cd5201e
Don't update strikethrough and underline for hidden runs.
3677669
Need to rework handling of hidden text.
1708927
Fix rendering of hidden text based on broken.txt
a181714
Move code for hidden glyphs outside of render_text_run and format code.
438c4e7
Merge branch 'master' into font-ligatures
9a75eda
Remove changes to ansi.rs after file was updated to comply with clippy.
70edadd
Fix typos in documentation, remove custom Debug impls for TextRun
bb57c4a
Fix for compilation on windows and mac osx
601724e
Fix typo bee -> be
9b3e7f9
Fix windows build
6c7b88e
Run cargo fmt over the changes.
e012b4c
Merge branch 'master' into font-ligatures
0ca96c3
Resolve build error introduced by bold_italic merge.
aff6bfe
Resolve build errors on macos
af57cb9
Pull in updates from master and fix for windows.
a8b8f4e
Replace use_thin_strokes method call with field access.
14b1b6c
Fix test code for macosx
68ca294
Merge branch 'master' of https://github.com/jwilm/alacritty into font…
168c0bf
initial fix for selection issue, but it needs some cleaning up. curre…
79ef496
Resolving review comments, mainly minor cleanup and renamings.
8a36143
Pull master and resolve conflict in Cargo.lock
dd2f870
Fix build errors on mac and windows.
2034c7b
Continue fixing up the codebase and making refactorings. Changes PLAC…
54c33c7
Fix for windows and mac osx
715263a
Refactor text_run for clarity of intent and clean up dead code.
ecec6ef
Introduce placeholder keytype to represent a glyph that should render…
853619f
Fix error returned for missing placeholder glyph. Refactor hidden_gly…
ecfb55d
Merge branch 'master' into font-ligatures
adc929c
Merge changes from upstream master.
1a4d7e0
Responding to review comments. Minor cleanups.
37ff931
Remove RenderLines in favor of converting TextRun directly RenderRect's.
282adae
Rename KeyType Fallback to Char
5411fda
Update comment on HbFtExt.
717ca23
Resolve merge conflict in CHANGELOG
38d4eec
Actually resolve merge conflict in CHANGELOG
fd1bcc3
Update Char for windows and mac osx
226e2d0
Update comment on KeyType
ab75676
Refactor iter_from_text_run to be from_text_run and move flag checkin…
3980857
Pull master and merge
91e0606
Fix render_string to render as expected
6f0454d
Update CHANGELOG and format recent changes.
f7d0b4a
Resolving review comments, mainly renaming
0113097
Fix call to from_iter_state that wasn't renamed. Avoid allocating Vec…
7da599a
Clean up directwrite code and remove keytype_unwrap_char
816ec2f
Create text_runs method on terminal to replace renderable_cells
cd515dc
Merge branch 'master' of https://github.com/jwilm/alacritty into font…
8e619b7
Format TextRun changes
74c3432
Merge in config overhaul and from upstream
b293d08
Tidy up merge and ensure build behaves as expected
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.