Release 0.2.5

This commit is contained in:
Aloxaf 2019-07-21 23:09:30 +08:00
parent 8cc6e582d0
commit 13209ffd5f
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -1179,7 +1179,7 @@ dependencies = [
[[package]]
name = "silicon"
version = "0.2.4"
version = "0.2.5"
dependencies = [
"clipboard 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"conv 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "silicon"
version = "0.2.4"
version = "0.2.5"
description = "Create beautiful image of your code"
authors = ["Aloxaf <aloxafx@gmail.com>"]
categories = ["command-line-utilities"]

View File

@ -9,7 +9,7 @@ Silicon is an alternative to [Carbon](https://github.com/dawnlabs/carbon) implem
It can render your source code into a beautiful image.
<img width="66%" src="http://storage.aloxaf.cn/silicon.png?v=1">
<img width="66%" src="http://storage.aloxaf.cn/silicon.png?v=2">
## Why Silicon

View File

@ -6,7 +6,7 @@
//! use image::{RgbImage, Rgb};
//! use silicon::font::{FontCollection, FontStyle};
//!
//! let mut image = RgbImage::new(200, 100);
//! let mut image = RgbImage::new(250, 100);
//! let font = FontCollection::new(&[("Hack", 27.0), ("FiraCode", 27.0)]).unwrap();
//!
//! font.draw_text_mut(&mut image, Rgb([255, 0, 0]), 0, 0, FontStyle::REGULAR, "Hello, world");