Introduce FontLibrary

This commit is contained in:
Brian Anderson 2012-06-21 19:42:11 -07:00
parent 6154066619
commit cfefc42c25
2 changed files with 22 additions and 0 deletions

View file

@ -66,12 +66,14 @@ mod platform {
mod text {
export glyph;
export text_run;
export font_library;
export font;
export shaper;
mod glyph;
mod text_run;
mod font;
mod font_library;
mod shaper;
mod native_font {
#[cfg(target_os = "macos")]

View file

@ -0,0 +1,20 @@
export FontLibrary;
import font::Font;
class FontLibrary {
let bogus: int;
new() { self.bogus = 0; }
fn get_font() -> @Font {
let f = Font(font::test_font_bin());
ret @f;
}
}
#[test]
fn should_get_fonts() {
let lib = FontLibrary();
lib.get_font();
}