Skip to content

Commit 79ab65f

Browse files
Tidy up GenericFamily a bit.
Rename the file in `styled_text` so it matches what it contains. Just re-export from fontique's root via styled_text rather than via fontique::generic.
1 parent a13aa93 commit 79ab65f

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

fontique/src/generic.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
66
use super::FamilyId;
77
use smallvec::SmallVec;
8-
9-
// FIXME(style): Other users of this can import it from styled_text
10-
pub use styled_text::GenericFamily;
8+
use styled_text::GenericFamily;
119

1210
type FamilyVec = SmallVec<[FamilyId; 2]>;
1311

fontique/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ mod source_cache;
4848

4949
pub use icu_locid::LanguageIdentifier as Language;
5050
pub use peniko::Blob;
51-
pub use styled_text::{Stretch, Style, Weight};
51+
pub use styled_text::{GenericFamily, Stretch, Style, Weight};
5252

5353
pub use attributes::Attributes;
5454
pub use collection::{Collection, CollectionOptions, Query, QueryFamily, QueryFont, QueryStatus};
5555
pub use fallback::FallbackKey;
5656
pub use family::{FamilyId, FamilyInfo};
5757
pub use font::{AxisInfo, FontInfo, Synthesis};
58-
pub use generic::GenericFamily;
5958
pub use script::Script;
6059
pub use source::{SourceId, SourceInfo, SourceKind};
6160

File renamed without changes.

styled_text/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mod brush;
2626
mod font_family;
2727
mod font_settings;
2828
mod font_stack;
29-
mod generic;
29+
mod generic_family;
3030
pub mod setting;
3131
mod style_property;
3232

@@ -35,5 +35,5 @@ pub use brush::Brush;
3535
pub use font_family::FontFamily;
3636
pub use font_settings::{FontFeature, FontSettings, FontVariation};
3737
pub use font_stack::FontStack;
38-
pub use generic::GenericFamily;
38+
pub use generic_family::GenericFamily;
3939
pub use style_property::StyleProperty;

0 commit comments

Comments
 (0)