8000 PHP 8 Deprecated function: Implicit conversion from float 38.5 to int loses precision in GDText\Box->drawInternal() (line 400 of /app/vendor/stil/gd-text/src/Box.php). · Issue #71 · stil/gd-text · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
PHP 8 Deprecated function: Implicit conversion from float 38.5 to int loses precision in GDText\Box->drawInternal() (line 400 of /app/vendor/stil/gd-text/src/Box.php). #71
Open
@kaszarobert

Description

@kaszarobert

Deprecated function: Implicit conversion from float 38.5 to int loses precision in GDText\Box->drawInternal() (line 400 of /app/vendor/stil/gd-text/src/Box.php).
GDText\Box->drawInternal(38.5, 162.6, Object, ' ') (Line: 328)
GDText\Box->draw('
Total:
2 000 mm') (Line: 1288)

$box = new Box($image);
$box->setFontFace($font_path);
$box->setFontColor(new Color(255, 255, 255));
$box->setLineHeight(1.5);
$box->setBox(0, 0, 100, 100);
$box->setTextAlign('center', 'top');
$box->draw($textToUse);

With line height 1.5 I get this deprecation warning all the times

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

      0