Subject: [PATCH rust-team v2 11/77] gnu: Add rust-pixglyph-0.5.

From: Andrew Wong <[email-masked]>
Date: Wed, 26 Feb 2025 19:50:21 -0500

* gnu/packages/crates-graphics.scm (rust-pixglyph-0.5): New variable.

Change-Id: I7413c139b5c66aa825ea7f35254ab9b575a66c54
---
 gnu/packages/crates-graphics.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index eac0542037..d5b0553e7a 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -3520,6 +3520,27 @@ (define-public rust-pistoncore-window-0.44
      "This package provides a library for window abstraction.")
     (license license:expat)))
 
+(define-public rust-pixglyph-0.5
+  (package
+    (name "rust-pixglyph")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pixglyph" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "152lvambhwqhsg8c6imzaxc081hch4lcw12sdy3kvgrng29zlnni"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-ttf-parser" ,rust-ttf-parser-0.24))))
+    (home-page "https://github.com/typst/pixglyph")
+    (synopsis "Font-rendering with subpixel positioning")
+    (description
+     "This package provides Font-rendering with subpixel positioning.")
+    (license license:asl2.0)))
+
 (define-public rust-png-0.17
   (package
     (name "rust-png")
-- 
2.48.1