Вход Регистрация
Файл: vendor/intervention/image/src/Interfaces/FontProcessorInterface.php
Строк: 114
<?php

declare(strict_types=1);

namespace 
InterventionImageInterfaces;

use 
InterventionImageExceptionsFontException;
use 
InterventionImageTypographyTextBlock;

interface 
FontProcessorInterface
{
    
/**
     * Calculate size of bounding box of given text in conjunction with the given font
     *
     * @throws FontException
     * @return SizeInterface
     */
    
public function boxSize(string $textFontInterface $font): SizeInterface;

    
/**
     * Build TextBlock object from text string and align every line according
     * to text modifier's font object and position.
     *
     * @param string $text
     * @param FontInterface $font
     * @param PointInterface $position
     * @throws FontException
     * @return TextBlock
     */
    
public function textBlock(string $textFontInterface $fontPointInterface $position): TextBlock;

    
/**
     * Calculate the actual font size to pass at the driver level
     *
     * @return float
     */
    
public function nativeFontSize(FontInterface $font): float;

    
/**
     * Calculate the typographical font size in pixels
     *
     * @throws FontException
     * @return int
     */
    
public function typographicalSize(FontInterface $font): int;

    
/**
     * Calculates typographical cap height
     *
     * @param FontInterface $font
     * @throws FontException
     * @return int
     */
    
public function capHeight(FontInterface $font): int;

    
/**
     * Calculates typographical leading size
     *
     * @param FontInterface $font
     * @throws FontException
     * @return int
     */
    
public function leading(FontInterface $font): int;
}
Онлайн: 0
Реклама