Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » I want to change fontsize in textflow or label
I want to change fontsize in textflow or label [message #1273592] Thu, 20 March 2014 08:22
Hyerim Kim is currently offline Hyerim KimFriend
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 99 times)

[Updated on: Fri, 21 March 2014 01:52]

Report message to a moderator

Previous Topic:NPE during mouse down on palette
Next Topic:GEF as native Drag Source
Goto Forum:
  


Current Time: Tue Sep 24 12:00:27 GMT 2024

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

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

Back to the top