ps_string_geometry

(PECL ps >= 1.2.0)

ps_string_geometryGets geometry of a string

Beschreibung

ps_string_geometry(
    resource $psdoc,
    string $text,
    int $fontid = 0,
    float $size = 0.0
): array

This function is similar to ps_stringwidth() but returns an array of dimensions containing the width, ascender, and descender of the text.

Parameter-Liste

psdoc

Resource identifier of the postscript file as returned by ps_new().

text

The text for which the geometry is to be calculated.

fontid

The identifier of the font to be used. If not font is specified the current font will be used.

size

The size of the font. If no size is specified the current size is used.

Rückgabewerte

An array of the dimensions of a string. The element 'width' contains the width of the string as returned by ps_stringwidth(). The element 'descender' contains the maximum descender and 'ascender' the maximum ascender of the string.

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

How can I improve my reaction time?

Improving reaction time requires consistent practice and a healthy lifestyle. Playing reaction-based games, including the Human Benchmark (https:/ ...

Geschrieben von nohasm191 am 09.09.2026 09:37:41
Forum: Ankündigungen
Steal a Brainrot Admin Abuse Secrets | U4gm

Building a memorable collection in Steal a Brainrot is less about chasing every new release and more about understanding which creatures fit your ...

Geschrieben von Bauer099 am 09.09.2026 06:15:23
Forum: Off-Topic Diskussionen
U4gm Reveals NBA 2K27's Best Grind-Saving Tips

The first weeks of a MyTEAM cycle are rarely about owning every headline card. They are about building a reliable identity, and NBA 2K27 MT (https ...

Geschrieben von Bauer099 am 09.09.2026 05:54:51
Forum: Off-Topic Diskussionen
FC27 Reworked: Smarter Attacks, Sharper Play | U4gm

Building a competitive FC 27 squad is less about chasing famous names and more about making smart decisions with limited resources. The transfer m ...

Geschrieben von Bauer099 am 09.09.2026 05:37:07
Forum: Off-Topic Diskussionen