MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / char_style

Class char_style

src/__init__.py:20507–20531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20505 line_rect = mupdf.FzRect(mupdf.FzRect.Fixed_EMPTY)
20506
20507 class char_style:
20508 def __init__(self, rhs=None):
20509 if rhs:
20510 self.size = rhs.size
20511 self.flags = rhs.flags
20512 self.char_flags = rhs.char_flags
20513 self.font = rhs.font
20514 self.argb = rhs.argb
20515 self.asc = rhs.asc
20516 self.desc = rhs.desc
20517 self.bidi = rhs.bidi
20518 else:
20519 self.size = -1
20520 self.flags = -1
20521 self.char_flags = -1
20522 self.font = ''
20523 self.argb = -1
20524 self.asc = 0
20525 self.desc = 0
20526 self.bidi = 0
20527 def __str__(self):
20528 ret = f'{self.size} {self.flags}'
20529 ret += f' {self.char_flags}'
20530 ret += f' {self.font} {self.color} {self.asc} {self.desc}'
20531 return ret
20532
20533 old_style = char_style()
20534 style = char_style()

Callers 1

JM_make_spanlistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…