Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approachthis approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

added 38 characters in body
Source Link
Zach Saucier
  • 13.4k
  • 10
  • 70
  • 110

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this onelike this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

added 2 characters in body
Source Link
user9447
  • 18.3k
  • 18
  • 70
  • 119

The reason why a good library for animating text characters themselfthemselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themself does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

The reason why a good library for animating text characters themselves does not exist is because all fonts are different. Making a general, programmatic approach to compensate for all fonts is approaching the realm of impossible.

In order for something like this to exist, the library would have to analyze each and every character of the given font, calculate when to change stroke width, calculate the stroke direction (likely breaking each character into multiple smaller lines to simulate natural writing), then recreate the character in SVG or Canvas so that it can be animated piece by piece. There are likely several other things that I'm missing out, but the point is that it's definitely not easy to make generic.

Therefore, we are left with two ways of doing what you want, neither are dynamically editable. The first is to use a video (or gif) of the text being written, which is fairly difficult to create for non-handwritten fonts.

The second is to use the line approach that you linked to in the question, by turning the text into a path (which can be done in an editor like InkScape or Illustrator). Once that is done, the same exact approach can be used as in the tutorial you linked. You can also animate the SVG lines in different ways by using a plugin like this one.

If you are looking to have an animation of the text being typed, you can use this approach. There is likely some library to do it more naturally, but I haven't searched hard for one yet.

Rollback to Revision 1
Source Link
user9447
  • 18.3k
  • 18
  • 70
  • 119
Loading
added 124 characters in body
Source Link
Zach Saucier
  • 13.4k
  • 10
  • 70
  • 110
Loading
Source Link
Zach Saucier
  • 13.4k
  • 10
  • 70
  • 110
Loading