[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2801.0. "problem with non-default font" by MLNCSC::VOCI () Tue May 22 1990 11:53

    Hy,
    
    My Customer creates a pushbutton with a laben with a non default font.
    The same program with VMS 5.2 works fine, but ith VMS 5.3 the
    pushbutton is created smaller with non label inside. Probably it's a
    font problem because a pushbutton with defaul font.
    
    The Customer does:
    .
    .
    Display	display;
    Widget 	frame;
    Font 	font_id;
    XFontStruct	*font_info;
    DwtFontList	font_list;
    Arg		args[10];
    
    .
    .
    .
    font_id 	= XLoadFont(display,"fixed");
    font_info	= XQueryFont(display,font_id);
    font_list	= DwtCreateFontList(font_info,0);
    XtSetArg(args[0], XtNx, 10);
    XtSetArg(args[1], XtNy, 10);
    XtSetArg(args[2], XtNfont, font_list);
    XtSetArg(args[3], XtNlabel, DwtLatin1String("Prova"));
    XtCreateManageWidget("Label", pushbuttonwidgetclass, frame, args, 4);
    .
    .
    .
    
    does anyone have an idea !!
    
    Thanks, Gea.
    
T.RTitleUserPersonal
Name
DateLines
2801.1Use CDA$ constant for character setLEOVAX::TREGGIARIWed May 23 1990 12:2810
>    font_list	= DwtCreateFontList(font_info,0);

Should be:

    font_list	= DwtCreateFontList(font_info, CDA$K_ISOLATIN1);

Check SYS$LIBRARY:CDA$DEF.H to make sure that CDA$K_ISOLATIN1 is the correct
spelling (my cluster is down...).

Leo
2801.2I tried, nosuccessMLNCSC::VOCIThu May 24 1990 12:235
    
    I tried that but nothing changes, any more ideas.
    
    Thanks a lot 
    Gea