Skip to content
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

Restrict font locator configurability down to native and mock. #1538

Merged
merged 2 commits into from
Jun 30, 2024

Conversation

christianparpart
Copy link
Member

I mainly wanted to get rid of the fontconfig dependency on Windows platform. There's no real need for it, especially since we have a DirectWrite font locator implementation. I'd rather focus on improving that one (if needed) than supporting two different one on a single platform.

@github-actions github-actions bot added documentation Improvements or additions to documentation frontend Contour Terminal Emulator (GUI frontend) VT: rasterizer Rendering of the terminal into a pixmap using `terminal_renderer` library fonts font rasterization and text shaping API and platform implementations labels Jun 25, 2024
@christianparpart christianparpart force-pushed the improvement/cleanup-font-locator-use branch from 326a785 to c37d1f1 Compare June 25, 2024 07:22
Copy link
Member

@Yaraslaut Yaraslaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small things

src/contour/Config.cpp Outdated Show resolved Hide resolved
vcpkg-configuration.json Outdated Show resolved Hide resolved
src/text_shaper/font_locator_provider.cpp Show resolved Hide resolved
@christianparpart christianparpart force-pushed the improvement/cleanup-font-locator-use branch 3 times, most recently from 7461ba1 to f428579 Compare June 25, 2024 20:09
Copy link
Member

@Yaraslaut Yaraslaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

This is mainly to lower the dependency count on at least Windows
operating system. Also, there's no need to be that explicit.

We still need a way to explicitly set the font locator to `mock` (xor
`native`) - but that's it.

Signed-off-by: Christian Parpart <christian@parpart.family>
@christianparpart christianparpart force-pushed the improvement/cleanup-font-locator-use branch from f428579 to 65f0180 Compare June 30, 2024 20:29
@christianparpart
Copy link
Member Author

I just rebased on top of latest master.

@christianparpart christianparpart merged commit 9963528 into master Jun 30, 2024
25 checks passed
@christianparpart christianparpart deleted the improvement/cleanup-font-locator-use branch June 30, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation fonts font rasterization and text shaping API and platform implementations frontend Contour Terminal Emulator (GUI frontend) VT: rasterizer Rendering of the terminal into a pixmap using `terminal_renderer` library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants