A problem Btnbmp and HEX-symbols from fonts

Post Reply
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

A problem Btnbmp and HEX-symbols from fonts

Post by ukoenig »

Hello,

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

the problem in detail :
http://forums.fivetechsupport.com/viewt ... 60#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

Image

Image

regards
Uwe :?:
Last edited by ukoenig on Tue Jun 25, 2019 10:49 am, edited 1 time in total.
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.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: A problem Btnbmp and HEX-symbol from fonts

Post by nageswaragunupudi »

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
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: A problem Btnbmp and HEX-symbols from fonts

Post by ukoenig »

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

Image

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.
Post Reply