Standardize Font Handling #60
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 2 hours 40 minutes
Due Date
john
2 hours 40 minutes
No due date set.
Blocks
#5 Provide default Font and Texture
john/McRogueFace
Reference: john/McRogueFace#60
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
43 feat: Caption font member, set outside of
__init__, change font, etc. This is the "standardize font handling" feature, too. [depends on RAII]See #4, #5 - not strict dependencies, but related work
Goal: Speed. Copy
PyTexturefor the structure of this object.159658521cI was hoping for a quick win, but this will take a little bit longer to not introduce instability.
I've also got default items added to the module, but
mcrfpy.default_fontfails the type check within UICaption's init. When executingtype(mcrfpy.default_font), I get a segfault. So I'm obviously missing some step somewhere either to make the types fully available to Python, or to assign the type to new objects that I'm building in C++ with GenericAlloc and friends.https://discuss.python.org/t/instantiating-python-objects-from-c-segfault-on-type-obj-class-attribute-missing/50432
I'm on the Python Discussion boards asking what I'm doing wrong.
commit:
a19781b56anotes on Python Discuss instance: https://discuss.python.org/t/instantiating-python-objects-from-c-segfault-on-type-obj-class-attribute-missing/50432/5
I used
mcrfpy.default_texture/PyTextureTypeto determine the process.auto type = (PyTypeObject*)PyObject_GetAttrString(McRFPy_API::mcrf_module, "Texture");(where the Python type attribute string is switched)tp_allocor the C++ class'spynewstatic method.I'll add a separate issue to solve the type bug - that wasn't part of the Font feature.