graphics.DrawText's max width not work only on xojo WEB edition

Hi, i have tried to use the width parameter of graphics.DrawText function and on desktop edition this is work fine, on xojo webEdition this parameter is ignored.

This is part of the code on web edition project

this is graphic result of web edition code

and this the CORRECT graphic result of “same” code on desktop edition

anyone know a workaround to get solution to this issue ?

this is the example project to reproduce the issue

graphics.drawtext_width_not_works.zip (970 Bytes)

Report the issue. Xojo PDF has known metric quirks as

Issue 78663 PDF font metrics seems bugged under certain circumstances causing alignment issues

1 Like

Hi @jury_buono1,

Make sure you have the used fonts in the server where the Web app is run.

1 Like

thank you for reply

the “server” where i try the web version of code and desktop version of code are the same pc, the fonts are necessarily the same

i have create issue

https://tracker.xojo.com/xojoinc/xojo/-/issues/78830

1 Like

@jury_buono1 can you update the zip file?

1 Like

Incomplete.

sorry

XojoEsempi_per_errori.zip (22.8 KB)