Kirpal / Keyboard-Layout-Editor-for-Blender

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

fonts rendered inconsistent #74

Open alinelena opened 3 years ago

alinelena commented 3 years ago

Required Information

perm

http://www.keyboard-layout-editor.com/#/gists/60d3c7dc61893e1403a3548a93ce08cc

Describe the bug

fonts seem to be inconsistently rendered. some are missing see the layout.

Screenshots

m65

this is blender output when the scene and then the json is loaded

Read prefs: /home/drFaustroll/.config/blender/2.91/config/userpref.blend
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
Warning: class IMPORT_MESH_OT_json contains a property which should be an annotation!
/home/drFaustroll/.config/blender/2.91/scripts/addons/Keyboard-Layout-Editor-for-Blender/__init__.py:44
    assign as a type annotation: IMPORT_MESH_OT_json.filter_glob
Read blend: /home/drFaustroll/playground/keyboard/m65/blender/m65.blend
Color management: scene view "No View" not found, setting default "Standard".
Color management: sequencer colorspace "sRGB EOTF" not found, will use default instead.
Info: Saved "m65.blend"

Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 5 vertice(s)
Info: Removed 5 vertice(s)
Info: Removed 5 vertice(s)
Warning: No mesh data to join
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 25 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Removed 39 vertice(s)
Info: Deleted 1 object(s)
Info: Deleted 26 object(s)
oliverdelancey commented 3 years ago

bad-font-example

I'm having a similar issue. See the home row above--the legends are the wrong size. They should look like the legends on the QWERTY row. The same thing is visible on keys like SHIFT, CTRL, ALT, ENTER, and the Numpad. (Ignore the ZXCV row, the non-centered legends there are my fault.)

This may have something to do with multiple font sizes on the keyboard. I set the single-line legends to size 5 and 2-line legends to size 3. Somehow the size 3 is affecting the home row and modifier keys.

Keyboard Layout Editor project: http://www.keyboard-layout-editor.com/#/gists/82bb4dcb7ead1d72bbc11d0a6ffe5b95

Edit: I realize that this may be a tricky fix. I can't make heads or tails of the JSON mess that KLE generates. But I'm very willing to help if needed.

oliverdelancey commented 3 years ago

render-4096

And a render of an older version of this same keyboard, before I shrank many of the legends and fixed up the colors. Notice that the fonts are all over the place here, even completely missing in some spots, like the S and Enter keys. I don't have the KLE project anymore, but I do have the JSON lying around somewhere...

ghost commented 1 year ago

Anyone figure this out?

joanroig commented 1 year ago

Anyone figure this out?

Could you please check if my fork fixes your issue? https://github.com/joanroig/Keyboard-Layout-Editor-for-Blender

arvinquilao commented 1 year ago

Anyone figure this out?

Could you please check if my fork fixes your issue? https://github.com/joanroig/Keyboard-Layout-Editor-for-Blender

Confirming that this commit fixes the font rendering issue for me.