mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove orphaned gfx::text::shaper code
The shaper code referenced in this issue is no longer being used. It was removed in commita535f22146
, but later reintroduced due to a merge conflict in commitd64d987e1d
. Fixes #163.
This commit is contained in:
parent
403958aed7
commit
b5046d24e0
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
Shaper encapsulates a specific shaper, such as Harfbuzz,
|
||||
Uniscribe, Pango, or Coretext.
|
||||
|
||||
Currently, only harfbuzz bindings are implemented.
|
||||
*/
|
||||
use gfx_font::Font;
|
||||
use text::glyph::GlyphStore;
|
||||
use text::harfbuzz;
|
||||
|
||||
pub type Shaper = harfbuzz::shaper::HarfbuzzShaper;
|
||||
|
||||
pub trait ShaperMethods {
|
||||
fn shape_text(&self, text: &str, glyphs: &mut GlyphStore);
|
||||
}
|
||||
|
||||
// TODO(Issue #163): this is a workaround for static methods and
|
||||
// typedefs not working well together. It should be removed.
|
||||
pub impl Shaper {
|
||||
pub fn new(font: &mut Font) -> Shaper {
|
||||
harfbuzz::shaper::HarfbuzzShaper::new(font)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue