Can't set tool tip background color when using XFT fonts

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Can't set tool tip background color when using XFT fonts

Submitted by mbalmer on Wed, 08/01/2007 - 10:37.

I use the new antialiased fonts in my applications. I am, however, no longer able to set the background color of the tool tips:

! used to work wo/ XFT fonts:
*.TipLabel.foreground: red
*.TipLabel.background: red

! only the renditionForeground work with antialiased fonts:
*.TipLabel.renderTable.variable.renditionForeground: red
*.TipLabel.renderTable.variable.renditionBackground: white

What is the right way to set the background color of a tool tip when using antialiased fonts?

 

 

Fri, 11/02/2007 - 14:42#1

Yuriy Syrota

Re: Can't set tool tip background color when using XFT font

I cannot reproduce your issue. I tried to change the tooltip demo in the following way.

commented out setting of tooltip backround color and added the following to fallback resources:

"*.TipLabel.background: red",
"*renderTable: three",
"*three.fontType: FONT_IS_XFT",
"*three.fontName: Sans",
"*three.fontSize: 10",

And the demo works well, I got red tooltip background.