Skip to content

Commit 365f9ee

Browse files
authored
fonts: Fix compilation warning due to added fallback mechanism (servo#39803)
servo#39608 added a mechanism to read document language from layout. It was used to make sure fallback font for Hiragana/Katakana/Kanji is same for Japanese document. Right now, the mechanism is only used for FreeType/macOS. For Windows, it already did the job correctly even before servo#39608, so there is no need for the mechanism yet. Testing: Manually tested on https://ja.wikipedia.org/wiki/Servo Signed-off-by: Euclid Ye <[email protected]>
1 parent c1a8a70 commit 365f9ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/fonts/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub(crate) enum EmojiPresentationPreference {
4343
pub struct FallbackFontSelectionOptions {
4444
pub(crate) character: char,
4545
pub(crate) presentation_preference: EmojiPresentationPreference,
46+
#[cfg_attr(target_os = "windows", allow(dead_code))]
4647
pub(crate) lang: Option<String>,
4748
}
4849

0 commit comments

Comments
 (0)