Skip to content

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

Merged
christianparpart merged 2 commits into
masterfrom
improvement/cleanup-font-locator-use
Jun 30, 2024
Merged

christianparpart merged 2 commits into
masterfrom
improvement/cleanup-font-locator-use

Conversation

@christianparpart

Copy link
Copy Markdown
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

@Yaraslaut Yaraslaut left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some small things

Comment thread src/contour/Config.cpp Outdated
Comment thread vcpkg-configuration.json
Comment thread src/text_shaper/font_locator_provider.cpp
Comment thread src/contour/contour.yml
@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

@Yaraslaut Yaraslaut left a comment

Copy link
Copy Markdown
Member

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 
@christianparpart
christianparpart force-pushed the improvement/cleanup-font-locator-use branch from f428579 to 65f0180 Compare June 30, 2024 20:29
@christianparpart

Copy link
Copy Markdown
Member Author

I just rebased on top of latest master.

@christianparpart
christianparpart merged commit 9963528 into master Jun 30, 2024
@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