Search in sources :

Example 6 with FontCharacter

use of com.airbnb.lottie.model.FontCharacter in project lottie-android by airbnb.

the class LottieCompositionMoshiParser method parseChars.

private static void parseChars(JsonReader reader, LottieComposition composition, SparseArrayCompat<FontCharacter> characters) throws IOException {
    reader.beginArray();
    while (reader.hasNext()) {
        FontCharacter character = FontCharacterParser.parse(reader, composition);
        characters.put(character.hashCode(), character);
    }
    reader.endArray();
}
Also used : FontCharacter(com.airbnb.lottie.model.FontCharacter)

Aggregations

FontCharacter (com.airbnb.lottie.model.FontCharacter)6 Rect (android.graphics.Rect)3 Font (com.airbnb.lottie.model.Font)3 Marker (com.airbnb.lottie.model.Marker)3 Layer (com.airbnb.lottie.model.layer.Layer)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 Paint (android.graphics.Paint)2 LongSparseArray (androidx.collection.LongSparseArray)1 SparseArrayCompat (androidx.collection.SparseArrayCompat)1 LottieComposition (com.airbnb.lottie.LottieComposition)1 LottieImageAsset (com.airbnb.lottie.LottieImageAsset)1 HashMap (java.util.HashMap)1