Standardize Font Handling #60
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
Refactoring & Cleanup
Tiny Feature
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
PyTexture
for the structure of this object.159658521c
I 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_font
fails 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:
a19781b56a
notes 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
/PyTextureType
to determine the process.auto type = (PyTypeObject*)PyObject_GetAttrString(McRFPy_API::mcrf_module, "Texture");
(where the Python type attribute string is switched)tp_alloc
or the C++ class'spynew
static method.I'll add a separate issue to solve the type bug - that wasn't part of the Font feature.