FL.objects.Uni.Uni
- class FL.objects.Uni.Uni(uni_or_int_or_hex: Uni | int | str | None = None)
Bases:
CopyableUni - class to represent a Unicode codepoint
This class is necessary to distinguish integers and Unicode indexes. Integers are usually read as glyph indexes, so it is necessary to create Uni objects to access glyph by Unicode index
Please note that this is not the same that is implemented in Python 2.x
- __init__(uni_or_int_or_hex: Uni | int | str | None = None) None
- Uni()
generic constructor, creates an empty Uni record (bullshit)
- Uni(Uni)
copy constructor
- Uni(uni: int)
creates Uni object and assigns integer value
- Uni(uni_hex: string)
creates Uni object and reads value from the string in hex form
Methods
__init__([uni_or_int_or_hex])Uni()
Attributes
Unicode index