-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New to the npm thing #61
Comments
I also had trouble here, so here's what I learned. I noticed that
Now I could see Then, loading However, trying to use this approach in my own code was a lot of trouble. I'm using Dojo and its AMD loader. So, I configure the loader (via data-dojo-config) to set a
I can then require In the end I have created a little .js file of my own alongside
Also had to edit the It's not pretty, Javascript loaders are a complete pain :( |
@neekfenwick : I did the same steps but it seems that obtained version lacks some methods. When I load the obj into browser I saw only load and loadSync methods (which obviously don't work). |
It looks like you're seeing the methods described on the text-to-svg page at https://github.com/shrhdk/text-to-svg (or https://www.npmjs.com/package/text-to-svg) .. you use them as described there. For example, they say:
Where I use this approach, my JS that needs to turn a font into SVG does this:
Hopefully this helps :) |
thanks, so basically you suggest me to create custom method to load fonts ? |
Not sure what you mean by 'custom method', I'm quoting the documentation of this module. The object you referred to didn't have a getSVG method because it's not in its implementation. You use the This isn't my module, I wrote none of its code, I'm just using it the way it was designed :) |
What do i need to do to use this module as part of a HTML page served from a remote HTTPD server..
Saludos, Ignacio J. Ortega
The text was updated successfully, but these errors were encountered: