FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem Btnbmp and HEX-symbols from fonts
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A problem Btnbmp and HEX-symbols from fonts
Posted: Tue Jun 25, 2019 05:36 AM
Hello,

during my tests I noticed a problem with Btnbmp selecting
any symbol of "Segoe UI Symbol"

the problem in detail :
viewtopic.php?f=3&t=37314&p=223160#p223160

in short :

You can use sample < W10btns.prg > and change the defined fonts
The symbols defined in HEX-format are used from "Segoe MDL2 Assets"
The defined fonts are used for the buttontext

DEFINE FONT oFont NAME "Arial" SIZE 0,-14
DEFINE FONT oFontG NAME "Arial" SIZE 0,-18
DEFINE FONT oBold NAME "Arial" SIZE 0,-14 BOLD
DEFINE FONT oFont1 NAME "Arial" SIZE 0,-24

ignored for symbols :-)
//DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-14
//DEFINE FONT oFontG NAME "Segoe UI" SIZE 0,-18
//DEFINE FONT oBold NAME "Segoe UI" SIZE 0,-14 BOLD
//DEFINE FONT oFont1 NAME "Segoe UI Light" SIZE 0,-24

results





regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A problem Btnbmp and HEX-symbol from fonts
Posted: Tue Jun 25, 2019 08:33 AM

When we specify

BTNBMP RESOURCE <n> ( hex or normal)

If <n> is in the appropriate range of symbols, Segoe MDL2 Assets font is used to display the symbol on Windows 10. On Windows 8, Segoe UI Symbol font is used.

Fonts defined for the BTNBMP are used for text only.

This is the behavior.

If you want to use any character with any other font as image, use bw_texttobmp() and use that bitmap.

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem Btnbmp and HEX-symbols from fonts
Posted: Tue Jun 25, 2019 10:51 AM
Thank You very much for the infos
I got a little bit confused after the tests

If <n> is in the appropriate range of symbols, Segoe MDL2 Assets font is used
to display the symbol on Windows 10. On Windows 8, Segoe UI Symbol font is used.
Fonts defined for the BTNBMP are used for text only.
This is the behavior.
If you want to use any character with any other font as image, use bw_texttobmp() and use that bitmap.


I included the needed infos



what is the best for window 8 users :-)

just moving the title to the left and keep it like it is desined
or removing everything about < Segoe MDL2 Assets> :-)

I think window 8 users can install < Segoe MDL2 Assets> as well
I don't have window 8 installed to test the result.

regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion