Skip to content
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

Character code is escaped by setText() method #29

Closed
hanfeisun opened this issue Jun 27, 2015 · 1 comment
Closed

Character code is escaped by setText() method #29

hanfeisun opened this issue Jun 27, 2015 · 1 comment

Comments

@hanfeisun
Copy link

I am using the "material-icons" for the font of `TextPath". The effect looks like this

Following is my code using "Leaflet.TextPath"

        pathLayer.setText '        ',
            repeat: true
            offset: 8
            attributes:
                'font-weight': 'bold',
                'font-size': '24'
                'class': "material-icons"

I found it didn't work well because  is escaped by the setText method.. Is there a way to tell setText to not escape this?

@hanfeisun
Copy link
Author

It is solved by replacing  with \ue145..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant