You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to embed base64 font in my HTML, but the library can load it. I made some research and found that in file util.py:519 there is a condition that checks if the uri starts with "data:", but the passed uri is a list, that is evaluated to str, so the string is "[u'data:..'" and the if can match it. I tried couple of tricky things, but after the match another errors came out. So, can you help me guys to fix this issue? Thanks a lot!
# Data URI
if uri.startswith("data:"): # uri="[u'data:....']"
m = _rx_datauri.match(uri)
self.mimetype = m.group("mime")
self.data = base64.decodestring(m.group("data"))
I am trying to embed base64 font in my HTML, but the library can load it. I made some research and found that in file util.py:519 there is a condition that checks if the uri starts with "data:", but the passed uri is a list, that is evaluated to str, so the string is "[u'data:..'" and the if can match it. I tried couple of tricky things, but after the match another errors came out. So, can you help me guys to fix this issue? Thanks a lot!
That is how my html file looks like:
The text was updated successfully, but these errors were encountered: