__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import dataclasses
from _typeshed import Incomplete
from collections.abc import Generator
from dataclasses import dataclass
from typing import Final, overload
from typing_extensions import Self, deprecated
from .drawing import DeviceGray, DeviceRGB, Number
from .enums import Align, TextEmphasis
from .syntax import PDFObject
# Only defined if harfbuzz is installed.
class HarfBuzzFont(Incomplete): # derives from uharfbuzz.Font
def __deepcopy__(self, _memo: object) -> Self: ...
@dataclass
class FontFace:
family: str | None
emphasis: TextEmphasis | None
size_pt: int | None
color: DeviceGray | DeviceRGB | None
fill_color: DeviceGray | DeviceRGB | None
def __init__(
self,
family: str | None = None,
emphasis: Incomplete | None = None,
size_pt: int | None = None,
color: int | tuple[Number, Number, Number] | DeviceGray | DeviceRGB | None = None,
fill_color: int | tuple[Number, Number, Number] | DeviceGray | DeviceRGB | None = None,
) -> None: ...
replace = dataclasses.replace
@overload
@staticmethod
def combine(default_style: None, override_style: None) -> None: ... # type: ignore[misc]
@overload
@staticmethod
def combine(default_style: FontFace | None, override_style: FontFace | None) -> FontFace: ...
class TextStyle(FontFace):
t_margin: int
l_margin: int | Align
b_margin: int
def __init__(
self,
font_family: str | None = None,
font_style: str | None = None,
font_size_pt: int | None = None,
color: int | tuple[int, int, int] | None = None,
fill_color: int | tuple[int, int, int] | None = None,
underline: bool = False,
t_margin: int | None = None,
l_margin: int | Align | str | None = None,
b_margin: int | None = None,
): ...
def replace( # type: ignore[override]
self,
/,
font_family: str | None = None,
emphasis: TextEmphasis | None = None,
font_size_pt: int | None = None,
color: int | tuple[int, int, int] | None = None,
fill_color: int | tuple[int, int, int] | None = None,
t_margin: int | None = None,
l_margin: int | None = None,
b_margin: int | None = None,
) -> TextStyle: ...
@deprecated("fpdf.TitleStyle is deprecated since 2.7.10. It has been replaced by fpdf.TextStyle.")
class TitleStyle(TextStyle): ...
__pdoc__: Final[dict[str, bool]]
class _FontMixin:
i: int
type: str
name: str
up: int
ut: int
cw: int
fontkey: str
emphasis: TextEmphasis
def encode_text(self, text: str): ...
class CoreFont(_FontMixin):
def __init__(self, fpdf, fontkey: str, style: int) -> None: ...
def get_text_width(self, text: str, font_size_pt: int, _): ...
class TTFFont(_FontMixin):
ttffile: Incomplete
ttfont: Incomplete
scale: Incomplete
desc: Incomplete
cmap: Incomplete
glyph_ids: Incomplete
missing_glyphs: Incomplete
subset: Incomplete
hbfont: HarfBuzzFont | None # Not always defined.
def __init__(self, fpdf, font_file_path, fontkey: str, style: int) -> None: ...
def close(self) -> None: ...
def get_text_width(self, text: str, font_size_pt: int, text_shaping_parms): ...
def shaped_text_width(self, text: str, font_size_pt: int, text_shaping_parms): ...
def perform_harfbuzz_shaping(self, text: str, font_size_pt: int, text_shaping_parms): ...
def shape_text(self, text: str, font_size_pt: int, text_shaping_parms): ...
class PDFFontDescriptor(PDFObject):
type: Incomplete
ascent: Incomplete
descent: Incomplete
cap_height: Incomplete
flags: Incomplete
font_b_box: Incomplete
italic_angle: Incomplete
stem_v: Incomplete
missing_width: Incomplete
font_name: Incomplete
def __init__(self, ascent, descent, cap_height, flags, font_b_box, italic_angle, stem_v, missing_width) -> None: ...
class Glyph:
glyph_id: int
unicode: tuple[Incomplete, ...]
glyph_name: str
glyph_width: int
def __hash__(self): ...
def __init__(self, glyph_id, unicode, glyph_name, glyph_width) -> None: ...
def __lt__(self, other): ...
def __gt__(self, other): ...
def __le__(self, other): ...
def __ge__(self, other): ...
__match_args__ = ("glyph_id", "unicode", "glyph_name", "glyph_width")
class SubsetMap:
font: TTFFont
def __init__(self, font: TTFFont, identities: list[int]) -> None: ...
def __len__(self) -> int: ...
def items(self) -> Generator[Incomplete, None, None]: ...
def pick(self, unicode: int): ...
def pick_glyph(self, glyph): ...
def get_glyph(
self,
glyph: Incomplete | None = None,
unicode: Incomplete | None = None,
glyph_name: Incomplete | None = None,
glyph_width: Incomplete | None = None,
) -> Glyph: ...
def get_all_glyph_names(self): ...
CORE_FONTS: dict[str, str]
COURIER_FONT: dict[str, int]
CORE_FONTS_CHARWIDTHS: dict[str, dict[str, int]]
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __init__.pyi | File | 937 B | 0644 |
|
| _fonttools_shims.pyi | File | 1.94 KB | 0644 |
|
| actions.pyi | File | 1.15 KB | 0644 |
|
| annotations.pyi | File | 2.39 KB | 0644 |
|
| bidi.pyi | File | 2.38 KB | 0644 |
|
| deprecation.pyi | File | 342 B | 0644 |
|
| drawing.pyi | File | 15.02 KB | 0644 |
|
| encryption.pyi | File | 3.61 KB | 0644 |
|
| enums.pyi | File | 7.51 KB | 0644 |
|
| errors.pyi | File | 365 B | 0644 |
|
| fonts.pyi | File | 4.93 KB | 0644 |
|
| fpdf.pyi | File | 23.71 KB | 0644 |
|
| graphics_state.pyi | File | 3.64 KB | 0644 |
|
| html.pyi | File | 2.91 KB | 0644 |
|
| image_datastructures.pyi | File | 1.25 KB | 0644 |
|
| image_parsing.pyi | File | 2 KB | 0644 |
|
| line_break.pyi | File | 4.97 KB | 0644 |
|
| linearization.pyi | File | 1.53 KB | 0644 |
|
| outline.pyi | File | 1.74 KB | 0644 |
|
| output.pyi | File | 6.45 KB | 0644 |
|
| prefs.pyi | File | 2.19 KB | 0644 |
|
| py.typed | File | 0 B | 0644 |
|
| recorder.pyi | File | 383 B | 0644 |
|
| sign.pyi | File | 604 B | 0644 |
|
| structure_tree.pyi | File | 1.56 KB | 0644 |
|
| svg.pyi | File | 4.65 KB | 0644 |
|
| syntax.pyi | File | 2.25 KB | 0644 |
|
| table.pyi | File | 3.99 KB | 0644 |
|
| template.pyi | File | 1.45 KB | 0644 |
|
| text_region.pyi | File | 5.43 KB | 0644 |
|
| transitions.pyi | File | 1.93 KB | 0644 |
|
| unicode_script.pyi | File | 3.21 KB | 0644 |
|
| util.pyi | File | 1.35 KB | 0644 |
|