tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.39k stars 379 forks source link

DisplayMessage doesnt render text #193

Closed jf--- closed 8 years ago

jf--- commented 8 years ago

minimal example


from OCC.gp import gp_Pnt
from OCC.Display.SimpleGui import init_display
display, start_display, add_menu, add_function_to_menu = init_display()

if __name__ == '__main__':
    P8 = gp_Pnt(-24, 120, 12.5)
    display.DisplayMessage(P8, "Does not show up")
    start_display()
jf--- commented 8 years ago

Quite possible that this has something to do with linking to freeimage I dont believe this to be a pythonocc issue, but build related

jf--- commented 8 years ago

tried with the current DLR/SC build ( 0.16.3 ), same thing...

jf--- commented 8 years ago

better example: pythonocc-core/examples/core_topology_glue.py

tpaviot commented 8 years ago

works on my windows machine core_topology_glue

jf--- commented 8 years ago

Yep, seems like this is an issue with the binary. I tried both my own built & DLR/SC, same result.

efirvida commented 8 years ago

I have the same Issue using python2.7 oce-16.1 python-occ 0.16.4 build from source in opensuse leap 42.1

calocedrus commented 7 years ago

This is closed and apparently not directly related to pythonocc but may I ask how to properly render text (using the nightly built, python 3.5 and linux, I observe the same as what @jf--- reported)? It seems that all convex characters (e.g. 0, a, B, 8,...) will show a strange behviour (characters replaced with vertical lines), but characters made of straight lines are fine (e.g. 1, i, l, k...)

chavan-vjti commented 7 years ago

Can I get to know, what exactly could be the linking issue with freeimage?