Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » setFont Monospace
setFont Monospace [message #146337] Mon, 13 August 2007 03:00
Eclipse UserFriend
Originally posted by: juergen.sterr.brain-child.de

Hi,

we are building an editor which provide the definition of a text based
screen output. The user can define text elements on the screen. Such an
element should have a fixed char size because a "i" is smaler than a "x".
We need a font Monospace.

Can I set the font in the EditPart?

The generated text set only the hight = 20
Can I set here the text style Monospace?

static final Font FFIGURETEXTFIELDTEXTFIGURE_FONT = new Font(Display
.getCurrent(), "Text", 20, SWT.NORMAL);


Thanks

Jürgen
Previous Topic:non-graphical complex properties
Next Topic:mapping one semantic element more than once causes exception
Goto Forum:
  


Current Time: Thu May 08 19:38:56 EDT 2025

Powered by FUDForum. Page generated in 0.03233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top