spv-css-parser: The font-size is really "px" even though it says "pt".
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 29 Dec 2020 18:46:16 +0000 (10:46 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 29 Dec 2020 18:49:07 +0000 (10:49 -0800)
src/output/spv/spv-css-parser.c

index c3a7118ccc9c84a393254f94696092a957970145..19b0b4715fa7c4d538f5f9d82a87bc750a1542cd 100644 (file)
@@ -126,7 +126,7 @@ css_decode_key_value (const char *key, const char *value,
       font->typeface = xstrdup (value);
     }
   else if (!strcmp (key, "font-size"))
-    font->size = atoi (value);
+    font->size = atoi (value) * 3 / 4;
 
   /* fg_color, bg_color */