Skip to content

RangeError #6

@ikutak

Description

@ikutak

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions