hathibelagal-dev / text-to-path-maker-for-flutter Goto Github PK
View Code? Open in Web Editor NEWConvert text to paths and animate them with this Flutter package
Home Page: https://pub.dev/packages/text_to_path_maker
License: Apache License 2.0
Convert text to paths and animate them with this Flutter package
Home Page: https://pub.dev/packages/text_to_path_maker
License: Apache License 2.0
Currently the package is drawing path with thickness even if we take the thinnest font possible it gives back a thick path. Feature should be added to just obtain a single lined character path.
Any plans to port it to null safe? Or would you take a PR ?
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)
Hi,
Found this issue with the librairie.
The error happend with ":" and the font :
https://fonts.google.com/?preview.text=kumarOneOutline+:&preview.text_type=custom&query=kumar+One+Outline
I/flutter (13628): EnumFontStyle.kumarOneOutline
E/flutter (13628): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.
E/flutter (13628): Receiver: null
E/flutter (13628): Tried calling: []("points")
E/flutter (13628): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
E/flutter (13628): #1 PMFont.generateSVGPathForCharacter
package:text_to_path_maker/src/pm_font.dart:91
E/flutter (13628): #2 PMFont.generatePathForCharacter
package:text_to_path_maker/src/pm_font.dart:41
E/flutter (13628): #3 _ClockAgentState.createNewPath
package:tv/…/agent_clock/agent_clock.dart:243
E/flutter (13628): #4 _ClockAgentState.initClockVariable.<anonymous closure>
package:tv/…/agent_clock/agent_clock.dart:90
E/flutter (13628): #5 _rootRunUnary (dart:async/zone.dart:1134:38)
E/flutter (13628): #6 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (13628): #7 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
E/flutter (13628): #8 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
E/flutter (13628): #9 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
E/flutter (13628): #10 Future._completeWithValue (dart:async/future_impl.dart:524:5)
E/flutter (13628): #11 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
E/flutter (13628): #12 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
E/flutter (13628): #13 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart)
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.