Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the linux build by stubbing out FreeType handles that haven't bee…
…n implemented yet. Add some glue to create ScaledFonts for Cairo backend on linux. Closes #207.
- Loading branch information
Brian J. Burg
committed
Nov 14, 2012
1 parent
8d5759d
commit 77a5d8b
Showing
8 changed files
with
173 additions
and
80 deletions.
There are no files selected for viewing
Submodule rust-azure
updated
from 3889e6 to 8db099
Submodule rust-freetype
updated
from 47035c to 351d5a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
pub struct FontconfigFontContextHandle { | ||
ctx: (), | ||
extern mod freetype; | ||
extern mod fontconfig; | ||
|
||
drop { } | ||
use fc = fontconfig; | ||
use ft = freetype; | ||
|
||
use gfx_font::FontHandle; | ||
use gfx_font_list::{FontEntry, FontFamily}; | ||
|
||
use core::dvec::DVec; | ||
use core::send_map::{linear, SendMap}; | ||
|
||
pub struct FontconfigFontListHandle { | ||
fctx: (), | ||
} | ||
|
||
pub impl FontconfigFontContextHandle { | ||
// this is a placeholder. | ||
static pub fn new() -> FontconfigFontContextHandle { | ||
FontconfigFontContextHandle { ctx: () } | ||
pub impl FontconfigFontListHandle { | ||
static pub fn new(_fctx: &native::FontContextHandle) -> FontconfigFontListHandle { | ||
FontconfigFontListHandle { fctx: () } | ||
} | ||
} | ||
|
||
fn get_available_families(&const self, | ||
_fctx: &native::FontContextHandle) | ||
-> linear::LinearMap<~str, @FontFamily> { | ||
fail; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.