Skip to content

Commit

Permalink
Merge pull request #1 from wezm/font-kit
Browse files Browse the repository at this point in the history
Build images programatically
  • Loading branch information
wezm authored Nov 24, 2018
2 parents 1c2fc46 + b9578ad commit 1c7a81b
Show file tree
Hide file tree
Showing 22 changed files with 292 additions and 380 deletions.
18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
[package]
name = "profont"
description = "The ProFont monospace font for use with the embedded-graphics crate."
version = "0.1.0"
authors = ["Wesley Moore <[email protected]>"]

documentation = "https://docs.rs/crate/profont"
repository = "https://github.com/wezm/profont"

readme = "README.md"
license = "MIT"

keywords = ["bitmap", "monochrome", "font", "monospace"]
categories = ["rendering", "embedded", "no-std"]

[dependencies]
embedded-graphics = "0.4"

font-kit = { version = "0.1", optional = true }
euclid = { version = "0.19", optional = true }
image = { version = "0.20", optional = true, default-features = false, features = ["png_codec"] }

[features]
default-features = []
exe = ["font-kit", "euclid", "image"]
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ProFont
MIT License

Copyright (c) 2018 Wesley Moore
Copyright (c) 2014 Tobias Jung, Carl Osterwald, Stephen C. Gilardi, Andrew Welch

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# ProFont

[The ProFont programming font](https://web.archive.org/web/20180412214402/http://tobiasjung.name/profont/)
for [embedded-graphics](https://github.com/jamwaffles/embedded-graphics).
[The ProFont monospace font][profont] for use with the [embedded-graphics] crate.

[![crates.io](https://img.shields.io/crates/v/profont.svg)](https://crates.io/crates/profont)
[![Documentation](https://docs.rs/profont/badge.svg)][crate-docs]

<img src="https://raw.githubusercontent.com/wezm/profont/master/IMG_2198.jpg" width="459" alt="Photo of ProFront on an ePaper display" />

`profont` is licensed under the [MIT license][MIT].

## Specimens

Expand Down Expand Up @@ -34,3 +40,8 @@ ProFont is available in 7 sizes:
### 24 Point

![24 Point ProFont](https://raw.githubusercontent.com/wezm/profont/master/data/ProFont24Point.png)

[embedded-graphics]: https://github.com/jamwaffles/embedded-graphics
[profont]: https://web.archive.org/web/20180412214402/http://tobiasjung.name/profont/
[MIT]: https://github.com/wezm/profont/blob/master/LICENSE
[crate-docs]: https://docs.rs/crate/profont
Binary file added data/IMG_2198.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ RAW = ${PNG:.png=.raw}

all: ${RAW}

pngs:
cargo run --release -- 7
cargo run --release -- 9
cargo run --release -- 10
cargo run --release -- 12
cargo run --release -- 14
cargo run --release -- 18
cargo run --release -- 24

.SUFFIXES: .png .raw

.png.raw:
convert ${.IMPSRC} -depth 1 gray:${.TARGET}

.PHONY: pngs
Binary file modified data/ProFont10Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont10Point.raw
Binary file not shown.
Binary file modified data/ProFont12Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont12Point.raw
Binary file not shown.
Binary file modified data/ProFont14Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont14Point.raw
Binary file not shown.
Binary file modified data/ProFont18Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont18Point.raw
Binary file not shown.
Binary file modified data/ProFont24Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont24Point.raw
Binary file not shown.
Binary file modified data/ProFont7Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont7Point.raw
Binary file not shown.
Binary file modified data/ProFont9Point.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/ProFont9Point.raw
Binary file not shown.
Binary file added data/ProFontIIx.ttf
Binary file not shown.
Loading

0 comments on commit 1c7a81b

Please sign in to comment.