Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » about font size control on Draw2d TextFlow(I want to change fontsize in textflow or label)
icon5.gif  about font size control on Draw2d TextFlow [message #1278295] Thu, 27 March 2014 02:15
Hyerim Kim is currently offline Hyerim Kim
Messages: 2
Registered: March 2014
Junior Member
Hello Smile

I'm implementing multiline Label Figure.

I have a question.

How can i change font size of textflow ?

I tried with the method [textflow.setFont] before I had changed height value of fontdata.

use this code,
Font tFont = m_Textflow.getFont();
FontData[] tFontDataList = tFont.getFontData();
tFontDataList[0].setHeight(aSize);
m_Textflow.setFont(new Font(null, tFontDataList[0]));

and the problem likes my attach image.

But that didn't work correctly and made any space on head.

Help me please T^T
  • Attachment: dd.png
    (Size: 3.11KB, Downloaded 14 times)
Previous Topic:Save not working
Next Topic:Zest - GraphContainer with Custom Nodes
Goto Forum:
  


Current Time: Sat Jul 26 15:22:13 EDT 2014

Powered by FUDForum. Page generated in 0.01511 seconds