Skip to content

Line height problem with diacritic symbols  #24

Description

@antonlukin

Found bug with diacritic symbols and cyrillic font using textBox method.
Lines containing the letters with extension element (diacritic) differ in height with the others.

Generating code:

$poster = new PHPImage();
$poster->setDimensionsFromImage($image)->draw($image);
$poster->resize(1200, 630, true);

$poster->setFont(get_template_directory() . '/assets/fonts/formular/formular-black.ttf');
$poster->setTextColor([255, 255, 255]);
$poster->textBox($caption, [
     'x' => 48,
     'y' => 275,
     'width' => 1000,
     'fontSize' => 64
]);

54361-1542963265

@kus
How we can fix it? I will be glad of any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions