Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!news.mixmin.net!news2.arglkargh.de!feeder.erje.net!1.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Gulp® <gulp@hotmail.it> |
| Newsgroups | it.comp.java |
| Subject | Re: importi giustificati a destra |
| Date | Mon, 5 Oct 2015 20:36:01 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 22 |
| Message-ID | <muug4n$n8q$1@speranza.aioe.org> (permalink) |
| References | <muu5lr$s1h$1@speranza.aioe.org> <muu9hm$6fd$1@speranza.aioe.org> <muuadj$8fd$1@speranza.aioe.org> <muudgc$gjn$1@speranza.aioe.org> |
| NNTP-Posting-Host | /jgamLTy17xGjgOvuUY4kg.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com it.comp.java:8582 |
Show key headers only | View raw
Il 05/10/15 19:54, Dr.UgoGagliardelli ha scritto: > Il font di solito proviene dal > contesto da cui prelevi l'oggetto Graphics, oppure da uno impostato, lo potrei comunque impostare fisso. > comunque con g2d.getFont(). Utilizzando tale font puoi calcolare la > dimensione il pixel da utilizzare per calcolare la dimensione della tua > stringa. Ad esempio: > > Font font = g2d.getFont(); > FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(font); > int width = fm.charsWidth(text.toCharArray(), 0, text.length); Mi da un problema: FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(fonti); getFontMetrics nel codice viene barrato come non fosse disponibile. -- Gulp® (forse mi sono perso qualcosa :))
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 17:37 +0200
Re: importi giustificati a destra 4ndre4 <a.laforgia@gmail.com> - 2015-10-05 08:49 -0700
Re: importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 17:57 +0200
Re: importi giustificati a destra "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-05 18:46 +0200
Re: importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 18:59 +0200
Re: importi giustificati a destra 4ndre4 <a.laforgia@gmail.com> - 2015-10-05 10:36 -0700
Re: importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 20:46 +0200
Re: importi giustificati a destra "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-05 19:54 +0200
Re: importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 20:36 +0200
Re: importi giustificati a destra "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-06 06:57 +0200
Re: importi giustificati a destra Gulp® <gulp@hotmail.it> - 2015-10-05 20:44 +0200
Re: importi giustificati a destra Delta11 <delta11NSP@email.it> - 2015-10-05 21:13 +0200
Re: importi giustificati a destra "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-06 07:15 +0200
Re: importi giustificati a destra Delta11 <delta11NSP@email.it> - 2015-10-06 09:09 +0200
Re: importi giustificati a destra "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-06 17:00 +0200
Re: importi giustificati a destra 4ndre4 <a.laforgia@gmail.com> - 2015-10-06 08:50 -0700
csiph-web