[−][src]Function gdl::text::draw_vertical_text
pub fn draw_vertical_text(
img: &mut DynamicImage,
text: &str,
x: u32,
y: u32,
font: &str,
font_size: f32,
direction: &str,
rgb: &Rgb
)
Draw vertical text onto an image.
This is done by drawing the text horizontally onto an image, then rotating this image by 90 degrees.
Arguments
img
- Mutable reference to a DynamicImage.text
- Text string to be drawn.x
- X-coordinate of top corner of text.y
- Y coordinae of top corner of text.font
- Font name. Fonts available include Roboto-Regular, BebasKai, Roboto-Light, among many others. Full list of fonts available coming soon.font_size
: f32 that represents the font's size.direction
: The direction the text should be facing, either "left" or "right".rgb
: Rgb text color.