Commit c1c91f3c authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #67 from blackle/master

Initialize font correctly in WindowBuilder
parents fbab345c 15eae71a
......@@ -321,7 +321,13 @@ pub struct WindowBuilder<'a> {
impl<'a> WindowBuilder<'a> {
pub fn new(rect: Rect, title: &'a str) -> Self {
WindowBuilder{rect: rect, title: title, font: None, theme: None, flags: None}
WindowBuilder {
rect: rect,
title: title,
font: orbfont::Font::find(None, None, None).ok(),
theme: None,
flags: None
}
}
pub fn font(mut self, font: orbfont::Font) -> Self {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment