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

Method set_fontsize

src/__init__.py:2524–2532  ·  view source on GitHub ↗

Set font size name via CSS style

(self, fontsize)

Source from the content-addressed store, hash-verified

2522 return self
2523
2524 def set_fontsize(self, fontsize):
2525 """Set font size name via CSS style"""
2526 if type(fontsize) is str:
2527 px=""
2528 else:
2529 px="px"
2530 text = f"font-size: {fontsize}{px}"
2531 self.append_styled_span(text)
2532 return self
2533
2534 def set_id(self, unique):
2535 """Set a unique id."""

Callers 4

set_propertiesMethod · 0.80
code_printerFunction · 0.80
json-example.pyFile · 0.80
simple-grid.pyFile · 0.80

Calls 1

append_styled_spanMethod · 0.95

Tested by

no test coverage detected