From a57e365cbff9fb3a2181f2b4a62b3cd1e441a953 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 14 Oct 2022 18:08:12 +0200 Subject: [PATCH] Add badges --- Cargo.toml | 1 + README.md | 10 ++++++++-- src/lib.rs | 4 +--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6ae88a94..192c5142 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" license = "MIT OR Apache-2.0" categories = ["compression", "encoding"] keywords = ["subsetting", "OpenType", "PDF"] +exclude = ["fonts/*"] [dev-dependencies] ttf-parser = "0.15" diff --git a/README.md b/README.md index 4122362d..a7870c3b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ # subsetter -Reduces the size and coverage of OpenType fonts. +[![Crates.io](https://img.shields.io/crates/v/subsetter.svg)](https://crates.io/crates/subsetter) +[![Documentation](https://docs.rs/subsetter/badge.svg)](https://docs.rs/subsetter) -Supports both TrueType and CFF outlines. +Reduces the size and coverage of OpenType fonts with TrueType or CFF outlines. + +```toml +[dependencies] +subsetter = "0.1" +``` ## Example In the example below, we remove all glyphs except the ones with IDs 68, 69, 70. diff --git a/src/lib.rs b/src/lib.rs index d2019d31..d4a102aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,5 @@ /*! -Reduces the size and coverage of OpenType fonts. - -Supports both TrueType and CFF outlines. +Reduces the size and coverage of OpenType fonts with TrueType or CFF outlines. # Example In the example below, we remove all glyphs except the ones with IDs 68, 69, 70.