Coder Social home page Coder Social logo

hathibelagal-dev / text-to-path-maker-for-flutter Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 18.0 718 KB

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

Dart 31.95% Kotlin 0.18% Swift 2.52% Objective-C 0.06% CMake 27.33% C++ 33.21% C 2.08% HTML 2.68%
animation-library dart dartlang flutter flutter-package

text-to-path-maker-for-flutter's People

Contributors

hathibelagal-ash avatar hathibelagal-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

text-to-path-maker-for-flutter's Issues

Generate character path without thickness

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.

Null safe

Any plans to port it to null safe? Or would you take a PR ?

RangeError

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)

https://fonts.google.com/?preview.text=kumarOneOutline+:&preview.text_type=custom&query=kumar+One+Outline

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.