Skip to content

Reference

phil/print-compositor
TypeKindRole
Phil\PrintCompositor\PrintCompositorfinal readonly classDraws a job into one print file per ink
Phil\PrintCompositor\PrintJobfinal readonly classA zone, its layers in order and a resolution
Phil\PrintCompositor\PrintFilesfinal readonly classThe print files of a job, by ink, as rasters or PNG
Phil\PrintCompositor\Layerfinal readonly classItems drawn in order in one ink
Phil\PrintCompositor\IteminterfaceSomething drawn in a layer, inside its box
Phil\PrintCompositor\ImageItemfinal readonly classAn image scaled into its box
Phil\PrintCompositor\TextItemfinal readonly classA text in a font, a colour and a range of sizes, in its box
Phil\PrintCompositor\TypeFacefinal readonly classA TrueType or OpenType file and what phil/fonts reads of it
Phil\PrintCompositor\TextFitterfinal classFinds the size of a text in its box, or refuses it
Phil\PrintCompositor\FittedTextfinal readonly classA text laid out: its size, its lines, the size of its ink
Phil\PrintCompositor\FittedLinefinal readonly classOne line: its baseline, its left side bearing and its width
Phil\PrintCompositor\MockupCompositorfinal classPlaces artworks on a face photo with the fabric's shading
Phil\PrintCompositor\Mockupfinal readonly classA face photo, its placements and the shading strength
Phil\PrintCompositor\FacePhotofinal readonly classThe photo of one face in one variant, and the rectangle of each zone on it
Phil\PrintCompositor\Placementfinal readonly classAn artwork in a zone of a photo, and its alignment
Phil\PrintCompositor\Rasterfinal classAn image in true colour with its alpha: decoding, pixels, PNG and WebP
Phil\PrintCompositor\Colourfinal readonly classAn sRGB colour with its opacity
Phil\PrintCompositor\Zonefinal readonly classA print zone and its real size in millimetres
Phil\PrintCompositor\Boxfinal readonly classA rectangle in millimetres in a zone
Phil\PrintCompositor\PixelBoxfinal readonly classA rectangle in pixels in an image
Phil\PrintCompositor\Unitsfinal classMillimetres and points turned into pixels
Phil\PrintCompositor\FitenumContain or cover
Phil\PrintCompositor\HorizontalAlignenumLeft, centre, right
Phil\PrintCompositor\VerticalAlignenumTop, middle, bottom
Phil\PrintCompositor\Internal\Gdfinal class, internalThe GD calls of the library
Phil\PrintCompositor\Exception\PrintCompositorExceptioninterfaceImplemented by every exception of the library
Phil\PrintCompositor\Exception\InvalidLayoutfinal classA layout that cannot be composed
Phil\PrintCompositor\Exception\InvalidImagefinal classAn image that cannot be read or is too large
Phil\PrintCompositor\Exception\UnsupportedFontfinal classA font that cannot be read or drawn
Phil\PrintCompositor\Exception\MissingGlyphsfinal classA text with characters its font does not cover
Phil\PrintCompositor\Exception\TextDoesNotFitfinal classA text that does not fit its box
Phil\PrintCompositor\Exception\MissingCapabilityfinal classA GD build without what a call needs