🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #29937

java.awt.FontMetrics.stringWidth(java.lang.String)

#29937
From: Chano G�mez
Date: Sat, 04 Oct 1997 00:00
18 lines
887 bytes


xxxx@hotmail.com escribi�:

> Hola me gustaria saber si hay alguna funcion que me devuelva el tama�o
> en pixels de un string.
>
> Esto lo digo por que me gustaria que saliese centrado en pantalla (ya
> sabeis la formula de (ancho de la pantalla / 2 - ancho del texto / 2)
> o si hay algun metodo en vez del drawString que me lo proporcione.
>
> Gracias, STR!P tm, 4CD Corp.


java.awt.FontMetrics.stringWidth(java.lang.String)

Chano
Technical Details
Message-ID: <34357907.6F1D9925@ran.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34363511.27970535@news.jet.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,5dd28aa71ef9dcdb,start
X-Google-Attributes: gid1116f3,public
From: "Chano G�mez" <chano@ran.es>
Subject: java.awt.FontMetrics.stringWidth(java.lang.String)
Date: 1997/10/04
Message-ID: <34357907.6F1D9925@ran.es>
X-Deja-AN: 277788576
References: <34363511.27970535@news.jet.es>
Organization: Unisource Espana NEWS SERVER
Newsgroups: es.comp.lenguajes.java