Skip to content

Commit

Permalink
Rename ufo.rs to font.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Jun 28, 2021
1 parent 6f64b48 commit a75b9ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/ufo.rs → src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ impl Default for MetaInfo {
}

impl Font {
/// Create a new `Ufo`.
/// Create a new, empty `Font` object.
pub fn new() -> Self {
Font::default()
}

/// Create a new `Ufo` only with certain fields
/// Create a new `Font` only with certain fields.
pub fn with_fields(data_request: DataRequest) -> Self {
let mut ufo = Self::new();
ufo.data_request = data_request;
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ extern crate serde_derive;
extern crate serde_repr;

pub mod error;
mod font;
pub mod fontinfo;
mod glyph;
mod guideline;
mod identifier;
mod layer;
mod names;
mod shared_types;
mod ufo;
mod upconversion;
pub mod util;

pub use error::Error;
pub use font::{DataRequest, Font, FormatVersion, MetaInfo};
pub use fontinfo::FontInfo;
pub use glyph::{
AffineTransform, Anchor, Component, Contour, ContourPoint, GlifVersion, Glyph, GlyphName,
Expand All @@ -43,7 +44,6 @@ pub use guideline::{Guideline, Line};
pub use identifier::Identifier;
pub use layer::{Layer, LayerSet};
pub use shared_types::{Color, IntegerOrFloat, NonNegativeIntegerOrFloat, Plist};
pub use ufo::{DataRequest, Font, FormatVersion, MetaInfo};

#[allow(deprecated)]
pub use ufo::Ufo;
pub use font::Ufo;
4 changes: 2 additions & 2 deletions src/upconversion.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::collections::{BTreeMap, HashMap, HashSet};
use std::path::Path;

use crate::font::{Groups, Kerning};
use crate::fontinfo::FontInfo;
use crate::names::NameList;
use crate::shared_types::IntegerOrFloat;
use crate::ufo::{Groups, Kerning};
use crate::Error;

/// Convert kerning groups and pairs from v1 and v2 informal conventions to
Expand Down Expand Up @@ -216,8 +216,8 @@ mod tests {
extern crate maplit;

use super::*;
use crate::font::{Font, FormatVersion};
use crate::glyph::GlyphName;
use crate::ufo::{Font, FormatVersion};
use maplit::btreemap;

#[test]
Expand Down

0 comments on commit a75b9ac

Please sign in to comment.