Re: Problem with Font.createGlyphVector(frc, String)



It means that nobody had this problem before?
It appears just sometime. As I found, if you call


code:
----------------------------------------------------------------------------
----

Graphics2D g2D;FontRenderContext frc = g2D.getFontRenderContext();String
string = new String (" test ");GlyphVector gV = Font.createGlyphVector
(frc, string); g2D.drawGlyphVector ( gV ,0 ,0 );

----------------------------------------------------------------------------
----



everything works fine, but
if you want to draw SHAPE here is the problem:


code:
----------------------------------------------------------------------------
----

Shape dispElement;Graphics2D g2D;FontRenderContext frc =
g2D.getFontRenderContext();String string = new String (" test ")
;GlyphVector gV = Font.createGlyphVector(frc, string); dispElement =
gV.getOutline();g2D.fill(dispElement);

----------------------------------------------------------------------------
----



the leading blanks are disappear. Too bad.

--
Message posted via http://www.javakb.com
.



Relevant Pages

  • Re: Clicked links pop up and then disappear-HELP
    ... Stan ... this was posted in another NG but nobody is home there. ... > in IE not stay up, they just pop-up then disappear... ... I tried changing the security setting with no luck. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Sliding Rod Experiment [PD investigates]
    ... Does the stick disappear when nobody is looking? ... relativists are faced everyday. ... The contradictions are ...
    (sci.physics.relativity)
  • Re: New Signature
    ... Nobody can take radw away from you. ... us pro-mcCoy trolls. ... Prev by Date: ...
    (rec.arts.drwho)
  • Re: Question about CardLayout
    ... that's exactly the way I was planning to do it if nobody came ... Luc Van Bogaert ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Another Quad. Residue question
    ... >> squares? ... Nobody knows. ... from anno domini. ... Prev by Date: ...
    (sci.math)