public static UVSMapping[] ReadArray(BinaryReaderFont reader, uint count) { UVSMapping[] array = new UVSMapping[count]; for (int i = 0; i < count; i++) { array[i] = Read(reader); } return(array); }
public static NonDefaultUVS Read(BinaryReaderFont reader) { NonDefaultUVS value = new NonDefaultUVS { numUVSMappings = reader.ReadUInt32() }; value.uvsMappings = UVSMapping.ReadArray(reader, value.numUVSMappings); value.uvsMappingsTable = new Dictionary <int, uint>(); for (int i = 0; i < value.uvsMappings.Length; i++) { UVSMapping mapping = value.uvsMappings[i]; value.uvsMappingsTable.Add( mapping.unicodeValue, mapping.glyphID ); } return(value); }