docs.rs failed to build gfx_text-0.4.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
gfx_text-0.33.0
gfx_text
Library for drawing text for gfx-rs graphics API. Uses freetype-rs underneath.
Usage
Basic usage:
// Initialize text renderer.
let mut text = new.build.unwrap;
// In render loop:
// Add some text 10 pixels down and right from the top left screen corner.
text.add;
// Draw text.
text.draw;
See API documentation for overview of all available methods.
You can skip default font by disabling include-font
feature:
[dependencies.gfx_text]
version = "*"
default-features = false
Examples
See this example on how to draw text in various styles: different sizes, colors, fonts, etc.
Output:
License
- gfx_text licensed under MIT License
- Included by default Noto Sans font uses Apache License 2.0
- Ubuntu Font used in examples has Ubuntu Font Licence 1.0