]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Feature-gate PROTECTED_STRINGS, fixes #192
authorSimon Cozens <simon@simon-cozens.org>
Fri, 25 Jul 2025 08:22:40 +0000 (09:22 +0100)
committerSimon Cozens <simon@simon-cozens.org>
Fri, 25 Jul 2025 08:22:40 +0000 (09:22 +0100)
src/lib.rs

index 2cbcd2e507168bc52e56f057f73a733bd1a0797d..bd3e3b9e4da3f114a014b55d6b276d1e54425f07 100644 (file)
@@ -43,6 +43,7 @@ const GF_STATIC_STYLES: [(&str, u16); 18] = [
     ("Black Italic", 900),
 ];
 
+#[cfg(feature = "fontations")]
 const PROTECTED_IDS: [StringId; 9] = [
     StringId::FAMILY_NAME,
     StringId::SUBFAMILY_NAME,