Skip to content

Conversation

@Paulkm2006
Copy link
Contributor

fix #49

Fallback to JetBrainsMono font when displaying Latin, Greek and Cyrillic characters.

@Paulkm2006 Paulkm2006 requested a review from Copilot September 28, 2025 09:49
@Paulkm2006 Paulkm2006 linked an issue Sep 28, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes font rendering issues for special characters by implementing font fallbacks for Latin, Greek, and Cyrillic characters using JetBrainsMono font when the primary SourceHanSans/SourceHanSerif fonts don't support them.

  • Adds @font-face definitions with unicode-range restrictions for Latin, Greek, and Cyrillic character sets
  • Implements fallback mechanism across all CSS style variants (classic/serif, vscode/typora)
  • Uses JetBrainsMono font as fallback for special characters while maintaining primary fonts for other content

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
styles/serif/vscode.css Adds font fallback definitions for SourceHanSansCN and creates JetBrainsMonoSpecial variant
styles/serif/typora.css Adds font fallback definitions for SourceHanSansCN and SourceHanSerifCN
styles/classic/vscode.css Adds font fallback definition for SourceHanSansCN
styles/classic/typora.css Adds font fallback definition for SourceHanSansCN

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Paulkm2006 and others added 2 commits September 28, 2025 17:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Paulkm2006 Paulkm2006 merged commit fb829fc into main Sep 28, 2025
@Paulkm2006 Paulkm2006 deleted the fix-special-chars branch September 28, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants