Skip to content

Improve line number rendering by copying font styles#16301

Open
TCOTC wants to merge 1 commit intosiyuan-note:devfrom
TCOTC:fix/number
Open

Improve line number rendering by copying font styles#16301
TCOTC wants to merge 1 commit intosiyuan-note:devfrom
TCOTC:fix/number

Conversation

@TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Nov 7, 2025

使用思源宋体时,代码块行号对不齐 https://ld246.com/article/1762527296449


@font-face {
	font-family:"Noto Serif CJK";
	src:local("Noto Serif CJK"),url("./snippets/SourceHanSerifSC-VF.otf.woff2")format("woff2");
	font-style:normal;
	font-display:swap;
}
* {
  font-family:"Noto Serif CJK";
  font-weight: normal;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant