-
Notifications
You must be signed in to change notification settings - Fork 21
Description
In pm_font_reader.dart, the line 103
for (var i = 0; i < font.numGlyphs + 1 ; i++) {
This should be
for (var i = 0; i < font.numGlyphs ; i++) {
Otherwise it gets out of range error.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (byteOffset): Invalid value: Not in inclusive range 0..5732822: 5732824
#0 _ByteDataView.getInt16 (dart:typed_data-patch/typed_data_patch.dart:4920:7)
#1 PMFontReader._createGlyphs (package:text_to_path_maker/src/pm_font_reader.dart:117:41)
#2 PMFontReader._parseTTF (package:text_to_path_maker/src/pm_font_reader.dart:43:5)
#3 PMFontReader.parseTTFAsset (package:text_to_path_maker/src/pm_font_reader.dart:33:12)
#4 KFontGeometry.load. (package:color_spatioplotter_ex/kfd3/kfd2path.dart:940:23)