fontlab_glyport.ui.images · declarations 001
Back to fontlab_glyport.ui.images
IMAGE_TYPES
module-attribute
IMAGE_TYPES
SIPS
module-attribute
SIPS
SIPS_TIMEOUT
module-attribute
SIPS_TIMEOUT
cursor_class
cursor_class(qt: Any) -> type
NSCursor bound to qt; standard cursors are shared per binding.
find_image
find_image(name: str | None, resources: str | Path | None) -> Path | None
name (with or without extension) under resources or its lprojs.
image_class
image_class(qt: Any, resources=()) -> type
NSImage bound to qt (PythonQt or a namespace with QtGui/QtCore[/QtSvg])
and to the resource folders imageNamed_ searches.
pdf_size
pdf_size(path: str | Path, *, run=run) -> NSSize | None
The first page's size in points, or None when sips cannot read it.
render_pdf
render_pdf(path: str | Path, width: int, height: int, *, run=run) -> bytes | None
PNG bytes of the page rasterised at width x height pixels.
retina_variant
retina_variant(path: str | Path) -> Path | None
A raster's name@2x sibling (AppKit's high-DPI representation).