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

[分包算法]:单包 feature 巨量问题 #42

Open
KonghaYao opened this issue Jan 6, 2024 · 1 comment
Open

[分包算法]:单包 feature 巨量问题 #42

KonghaYao opened this issue Jan 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working 一般

Comments

@KonghaYao
Copy link
Owner

No description provided.

@KonghaYao KonghaYao modified the milestone: FULL FEATURE SUPPORT Jan 6, 2024
@KonghaYao KonghaYao added bug Something isn't working 一般 labels Jan 6, 2024
@KonghaYao KonghaYao self-assigned this Jan 6, 2024
@KonghaYao
Copy link
Owner Author

/* ❌ 这个特性不生效 */
@font-face {
    font-family: 'test';
    src: url('./fi.ttf');
    unicode-range: U+66, U+69;
}
/* ✅ 这个特性可以生效*/
@font-face {
    font-family: 'test';
    src: url('./fh.ttf');
    unicode-range: U+66, U+68;
}
body > * {
    font-size: 8rem;
    font-family: 'test';
}

浏览器默认规则,后面的生效,当 unicode overlap 时,采用后面的 U+66,从而导致前面的 feature 失效

@KonghaYao KonghaYao moved this to Todo in 中文网字计划 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 一般
Projects
Development

No branches or pull requests

1 participant