Search found 16 matches: facename

Return to advanced search

Re: Problem with Choose font

I have different on my dialog I use BTNBMP control to show name of font and sizes cFontName := oBrowse:aArraydata[nRecord][15] nFontSize := oBrowse:aArraydata[nRecord][16] lUnderline := oBrowse:aArraydata[nRecord][17] lStrikeOut := oBrowse:aArraydata[nRecord][18] lBold := oBrowse:aArraydata[nRecord]...
by Silvio.Falconi
Fri Apr 21, 2023 9:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with Choose font
Replies: 5
Views: 542

Re: Know the size of a font selected

ChooseFont() function of FWH is a straight forward implementation of Windows function ChooseFont(). The font size displayed in the ChooseFont() dialog box is in "Points". This size in points is converted to font height with this formula. lfHeight = -MulDiv(PointSize, GetDeviceCaps(...
by Silvio.Falconi
Tue Nov 03, 2020 9:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Know the size of a font selected - Resolved -
Replies: 9
Views: 1322

Re: tgraph and Y series alignment

I think You have to define a extra font The tested fontstring ( saved to a DBF-field ) cBFont[3] := {"AcmeFont",0,-13,.F.,.F., 900 ,0,,.F.,.F.,.F.,0,3,2,1,,2} I save the fontstring cBFont[3] to a DBF-field like ACTION ( aFont := CHOOSEFONT(), ; oFont0 := BUILDFONT( aFont ) , ; IIF( aFont[ ...
by ukoenig
Mon Feb 12, 2018 2:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tgraph and Y series alignment
Replies: 10
Views: 2159

Re: Strange Font Problem in fwh 1412

... us know if you adopted (a), (b) or (c) 4) If we do not get any clue from the above, I suggest you to create a totally new font with a different facename ( roman or some other ) and use that font exclusively only for RBBTNS. Then we'll be more clear if the offending code is in RBBtn or somewhere ...
by nageswaragunupudi
Tue Jan 20, 2015 1:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange Font Problem in fwh 1412
Replies: 18
Views: 3912

Re: Bold text on a button bar

... back to same font. Nothing changes. Buttons in Buttonbar ignore any font setting of the button. In case a font is set to Buttonbar and that font's facename is 'Tahoma' ( not even 'TAHOMA' ) of any size that font is used and otherwise Tahoma 0,-11 is forced. You can make the button prompts' font ...
by hag
Sun Aug 30, 2009 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bold text on a button bar
Replies: 10
Views: 1651

Re: Bold text on a button bar

Mr Harvey Buttons in Buttonbar ignore any font setting of the button. In case a font is set to Buttonbar and that font's facename is 'Tahoma' ( not even 'TAHOMA' ) of any size that font is used and otherwise Tahoma 0,-11 is forced. You can make the button prompts' font bold if you ...
by nageswaragunupudi
Sun Aug 30, 2009 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bold text on a button bar
Replies: 10
Views: 1651

Ups,,, falto algo FUNCTION BUILDFONT( aFont ) IF EMPTY( aFont[ LF_FACENAME ] ) RETURN NIL ENDIF RETURN TFont():New( aFont[ LF_FACENAME ],; ,; aFont[ LF_HEIGHT ],; .f.,; !( aFont[ LF_WEIGHT ] == FW_NORMAL ),; aFont[ LF_ESCAPEMENT ],; aFont[ LF_ORIENTATION ],; aFont[ LF_WEIGHT ],; aFont[ LF_ITALIC ],;...
by Willi Quintana
Mon Jul 14, 2008 10:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar Tipo de letra y color
Replies: 2
Views: 779

The real Hight-Information of a selected Font ?

Hello from Germany I'm still struggling with the INI-Handling for Fonts. I got it working like : [Main] DATESET=5 WRITESET=1 [Paint] HEADPIC=1 COLTEXT=2 LOGO1=LOGO1 BRUSH1=9 COLOR1=16711680 LOGO2=LGO2 BRUSH2=9 COLOR2=16711680 POSTOP=10 POSLEFT=70 [SysFonts] FONT1=Arial 10 .F. .F. FONT2=Arial 12 .F. ...
by ukoenig
Sat Feb 23, 2008 5:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: The real Hight-Information of a selected Font ?
Replies: 2
Views: 737

I can't see the Size setting: aFont := Choosefont() IF EMPTY( aFont[ 14 ] ) aFont[ LF_HEIGHT ] := - 13 aFont[ LF_WIDTH ] := 0 aFont[ LF_ESCAPEMENT ] := 0 aFont[ LF_ORIENTATION ] := 0 aFont[ LF_WEIGHT ] := 400 aFont[ LF_ITALIC ] := .F. aFont[ LF_UNDERLINE ] := .F. aFont[ LF_STRIKEOUT ] := .F. aFont[ ...
by Ollie
Mon Mar 05, 2007 12:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fonts Explanation
Replies: 23
Views: 7852

Como se convierte font de Twindows a FONT DE TPRINTER

Amigos Trato de pulir un diseñador visual en tiempo de ejecucion como hago para convertir los fonts de gets q tengo en un TWINDOWS a FONTS de la clase TPRINTER la idea es q se imprima lo q se tiene en la TWINDOWS que simula al papel en la respectiva proporcion en la vista previa con la clase tPRINTE...
by Vladimir Zorrilla
Tue Apr 18, 2006 6:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como se convierte font de Twindows a FONT DE TPRINTER
Replies: 5
Views: 3768

Antonio,

También falla al llamar a SETCHARFORMAT() y pulsar cancelar, se arreglaría añadiendo

aFont := ChooseFont( aFont, @nColor )

if !Empty( aFont[ LF_FACENAME ]) <---- Esta línea

................

Endif


Un Saludo,
Joaquín
by jmartial
Fri Mar 24, 2006 6:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error de código en la clase RICHEDIT
Replies: 4
Views: 1040

ChooseFont function (fixed)

In order to intercept the "Cancel" key is necessary to modify the ChooseFont function in the module font.c ... if ( !bOk ) _reta(0); else { _reta( 14 ); _storni( ( bOk || bInitLF ) ? lf.lfHeight: 0, -1, LF_HEIGHT ); _storni( ( bOk || bInitLF ) ? lf.lfWidth: 0, -1, LF_WIDTH ); _storni( ( bOk || bInit...
by Pier Luigi
Wed Dec 14, 2005 3:22 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: ChooseFont function (fixed)
Replies: 0
Views: 1376

Per intercettare il tasto Annulla è necessario modificare la funzione ChooseFont contenuta nel modulo font.c ... if ( !bOk ) _reta(0); else { _reta( 14 ); _storni( ( bOk || bInitLF ) ? lf.lfHeight: 0, -1, LF_HEIGHT ); _storni( ( bOk || bInitLF ) ? lf.lfWidth: 0, -1, LF_WIDTH ); _storni( ( bOk || bIn...
by Pier Luigi
Wed Dec 14, 2005 3:06 pm
 
Forum: All products support
Topic: ChooseFont
Replies: 9
Views: 2967

ChooseFont

Hi Fw's. ChooseFont function can not set correctly the dimension of character passed in Array parameter and if I change the dimension is not the set value correctly. For Ex. I set in the array -12, ChooseFont 9, select 12 and return -16!!! Another problem is if I press "Cancel" button after any sett...
by Ugo
Wed Dec 14, 2005 1:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ChooseFont
Replies: 12
Views: 6008

Prova ora: #define LF_HEIGHT 1 #define LF_WIDTH 2 #define LF_ESCAPEMENT 3 #define LF_ORIENTATION 4 #define LF_WEIGHT 5 #define LF_ITALIC 6 #define LF_UNDERLINE 7 #define LF_STRIKEOUT 8 #define LF_CHARSET 9 #define LF_OUTPRECISION 10 #define LF_CLIPPRECISION 11 #define LF_QUALITY 12 #define LF_PITCHA...
by Guest
Wed Dec 14, 2005 9:38 am
 
Forum: All products support
Topic: ChooseFont
Replies: 9
Views: 2967
Next

Return to advanced search