A problem Btnbmp and HEX-symbols from fonts

A problem Btnbmp and HEX-symbols from fonts

Postby ukoenig » Tue Jun 25, 2019 5: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

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

Re: A problem Btnbmp and HEX-symbol from fonts

Postby nageswaragunupudi » Tue Jun 25, 2019 8: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
User avatar
nageswaragunupudi
 
Posts: 10653
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: A problem Btnbmp and HEX-symbols from fonts

Postby ukoenig » 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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests