-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix tabobject #184
fix tabobject #184
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
from compas.geometry import Box | ||
from compas_viewer import Viewer | ||
from compas_viewer.scene import Tag | ||
|
||
box1 = Box.from_width_height_depth(5, 1, 1) | ||
box2 = Box.from_width_height_depth(1, 5, 1) | ||
t = Tag("EN", (5, 1, 1), height=50) | ||
viewer = Viewer() | ||
|
||
# Simple list of objects | ||
group1 = viewer.scene.add([box1, box2, t]) | ||
viewer.show() |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By putting back the missing file here, tagobject file can be fixed |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,7 @@ def make_buffers(self): | |
} | ||
|
||
def make_text_texture(self): | ||
print(self.geometry.font) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this the hotfix? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh no there was a missing file, I will remove this print line |
||
face = Face(self.geometry.font) | ||
# the size is specified in 1/64 pixel | ||
face.set_char_size(64 * 48) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please leave a blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and put a period at the end of every sentence