Kirpal / Keyboard-Layout-Editor-for-Blender

Allows you to import keyboard layouts into blender and render them in 3d
336 stars 38 forks source link

Google Fonts not fully working #6

Closed bmmcwhirt closed 6 years ago

bmmcwhirt commented 6 years ago

I have the following in my KLE custom style

`@font-face { font-family: 'Hannari'; font-style: normal; font-weight: 600; src: url(//fonts.gstatic.com/ea/hannari/v1/Hannari-Regular.eot); src: url(//fonts.gstatic.com/ea/hannari/v1/Hannari-Regular.eot?#iefix) format('embedded-opentype'), url(//fonts.gstatic.com/ea/hannari/v1/Hannari-Regular.woff2) format('woff2'), url(//fonts.gstatic.com/ea/hannari/v1/Hannari-Regular.woff) format('woff'), url(//fonts.gstatic.com/ea/hannari/v1/Hannari-Regular.ttf) format('truetype'); }

And I get the error:

Trackback (most recent call last): File "/Users/bmmcwhirt/Library/Application Support/Blender/2.79/scripts/addons/Keyboard-Layout-Editor-for-Blender-master/init.py", line 32, in execute import_keyboard.read(self.filepath) File "/Users/bmmcwhirt/Library/Application Support/Blender/2.79/scripts/addons/Keyboard-Layout-Editor-for-Blender-master/import_keyboard.py", line 462, in read if selector is not None and fontProps[idx] is None: IndexError: list index out of range

location: :-1

My layout: https://gist.github.com/bmmcwhirt/84deb68f41b55c171bd6ace6f6ce4e09

Kirpal commented 6 years ago

This is interesting, because Hannari is an early access Google Font, and therefore I hadn't included it in the project. I'll add support for early access fonts too.