Lesstif issue with XmeRenderTableGetDefaultFont - Motif
This is a discussion on Lesstif issue with XmeRenderTableGetDefaultFont - Motif ; I'm trying to run SGE's qmon with lesstif. A problem is that qmon
expects XmeRenderTableGetDefaultFont to work, but lesstif does not
appear to implement this:
extern Boolean
XmeRenderTableGetDefaultFont(XmRenderTable renderTable,
XFontStruct **fontStruct)
{
return False;
}
Is there some other function ...
-
Lesstif issue with XmeRenderTableGetDefaultFont
I'm trying to run SGE's qmon with lesstif. A problem is that qmon
expects XmeRenderTableGetDefaultFont to work, but lesstif does not
appear to implement this:
extern Boolean
XmeRenderTableGetDefaultFont(XmRenderTable renderTable,
XFontStruct **fontStruct)
{
return False;
}
Is there some other function I should be calling to populate
layout.font? It wants it to determine some widths:
lw->layout.pixperem = XTextWidth(lw->layout.font, "M", 1);
Thanks!
- Orion
-
Re: Lesstif issue with XmeRenderTableGetDefaultFont
"Orion Poplawski" wrote in message
news:455a4e6a$0$10301$815e3792@news.qwest.net...
> I'm trying to run SGE's qmon with lesstif. A problem is that qmon expects
> XmeRenderTableGetDefaultFont to work, but lesstif does not appear to
> implement this:
>
> extern Boolean
> XmeRenderTableGetDefaultFont(XmRenderTable renderTable,
> XFontStruct **fontStruct)
> {
> return False;
> }
>
> Is there some other function I should be calling to populate layout.font?
> It wants it to determine some widths:
>
> lw->layout.pixperem = XTextWidth(lw->layout.font, "M", 1);
>
> Thanks!
>
> - Orion
I don't know lesstif, but you might try and see fi this function exists:
_XmFontListGetDefaultFont
It it from Motif1.2 and has the same signature as the Motif2.1
function XmeRenderTableGetDefaultFont.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
-
Re: Lesstif issue with XmeRenderTableGetDefaultFont
Fred Kleinschmidt wrote:
>
> I don't know lesstif, but you might try and see fi this function exists:
> _XmFontListGetDefaultFont
>
> It it from Motif1.2 and has the same signature as the Motif2.1
> function XmeRenderTableGetDefaultFont.
Thanks a lot, that seems to have done the trick for now!