]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Update googlesanscode/METADATA.pb (#9824)
authornyshadhr9 <nyshadhr@google.com>
Fri, 12 Sep 2025 06:12:59 +0000 (02:12 -0400)
committerGitHub <noreply@github.com>
Fri, 12 Sep 2025 06:12:59 +0000 (00:12 -0600)
Import `sample_text` changes which are currently already used in sandbox/prod. Set the correct font category to MONOSPACE.

ofl/googlesanscode/METADATA.pb

index 7ddfdba3feec610bb6c37dc42addb2617cbd2470..9a565ccbe52e2aab98fed931148c45aa077d6973 100644 (file)
@@ -1,7 +1,7 @@
 name: "Google Sans Code"
 designer: "Google, Universal Thirst"
 license: "OFL"
-category: "SANS_SERIF"
+category: "MONOSPACE"
 date_added: "2024-11-21"
 fonts {
   name: "Google Sans Code"
@@ -38,6 +38,43 @@ axes {
   min_value: 300.0
   max_value: 800.0
 }
+sample_text {
+  masthead_full: "print('Hello Google!')"
+  masthead_partial: "print('Hello Google!')"
+  styles: "print('Hello Google!')"
+  tester: "print('Hello Google!')"
+  specimen_48: "f = 'Google Sans Code'\n"
+  specimen_36:
+    "def greet(person):\n"
+    "  print(f\"Hi {person}\")\n"
+  specimen_32:
+    "enum Mood {\n"
+    "  HAPPY,\n"
+    "  CURIOUS };\n"
+    "// Spread glowing vibes!\n"
+    "update(Mood.HAPPY);\n"
+  specimen_21:
+    "<script type=\"module\">\n"
+    "/* For demo purposes only! */\n"
+    "const family = 'Google Sans Code';\n"
+    "if (family && log || debug) {\n"
+    "  log(`Font: ${family}`);\n"
+    "  log(`First letter? ${family[0]}`);\n"
+    "}\n"
+    "</script>"
+  specimen_16:
+    "public static int fib(int n) {\n"
+    "  a = 0;\n"
+    "  b = 1;\n"
+    "  result = 0;\n"
+    "  for (int i = 2; i <=n; i++) {\n"
+    "    result = a + b;\n"
+    "    a = b\n"
+    "    b = result\n"
+    "  }\n"
+    "  return result;\n"
+    "}"
+}
 source {
   repository_url: "https://github.com/googlefonts/googlesans-code"
   commit: "edcd56e39fb7e98d6f1b697e187c144cef2fd994"