pub fn make_fake_typeface_collection(mut faces: Vec<Typeface>) -> TypefaceCollection {
    let mut result = TypefaceCollection::new();
    for (i, mut typeface) in faces.drain(..).enumerate() {
        // Assign fake asset_id to each font
        typeface.asset_id = AssetId(i as u32);
        result.add_typeface(Arc::new(typeface));
    }

    result
}
/// Creates a collection consisting of all of the given `Typeface`s, assigning them sequential
/// `AssetId`s.
Creates a collection consisting of all of the given `Typeface`s, assigning them sequential
`AssetId`s.
Creates a collection consisting of all of the given ` Typeface ` s assigning them sequential ` AssetId ` s .
pub fn make_fake_typeface_collection(mut faces: Vec<Typeface>) -> TypefaceCollection {
    let mut result = TypefaceCollection::new();
    for (i, mut typeface) in faces.drain(..).enumerate() {
        // Assign fake asset_id to each font
        typeface.asset_id = AssetId(i as u32);
        result.add_typeface(Arc::new(typeface));
    }
    result
}
pub fn make_fake_typeface_collection ( mut faces : Vec < Typeface > ) -> TypefaceCollection { let mut result = TypefaceCollection :: new ( ) ; for ( i , mut typeface ) in faces . drain ( .. ) . enumerate ( ) { // Assign fake asset_id to each font typeface . asset_id = AssetId ( i as u32 ) ; result . add_typeface ( Arc :: new ( typeface ) ) ; } result }
Creates a collection consisting of all of the given `Typeface`s, assigning them sequential
`AssetId`s.
Creates a collection consisting of all of the given ` Typeface ` s assigning them sequential ` AssetId ` s .
faces
Vec<Typeface>
faces
Vec<Typeface>