News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

TextView

Started by Biterider, May 07, 2020, 06:34:09 PM

Previous topic - Next topic

Biterider

I rebooted the system on all these last attempts and did not succeed.  :sad:

LiaoMi

Quote from: Biterider on May 15, 2021, 10:09:01 PM
I rebooted the system on all these last attempts and did not succeed.  :sad:

In this case, the problem is in the registry, this is the old code from Microsoft, which no one rewrote for new systems. If Unicode support is available on all systems, then you do not need to rewrite these modules, but for now it remains to live with it. 15 years ago there were the same problems, changing the encoding did not help, a rough change in the registry helped.

   Windows Registry Editor Version 5.00 
       
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]   
    "1250"="c_1251.nls"   
    "1251"="c_1251.nls"   
    "1252"="c_1251.nls"   
    "1253"="c_1251.nls"   
    "1254"="c_1251.nls"   
    "1255"="c_1251.nls"     
     
    [HKEY_CURRENT_USER\Control Panel\International] 
    "Locale"="00000419" 
    "LocaleName"="ru-RU" 
    "s1159"="" 
    "s2359"="" 
    "sCountry"="Russia" 
    "sCurrency"="р." 
    "sDate"="." 
    "sDecimal"="," 
    "sGrouping"="3;0" 
    "sLanguage"="RUS" 
    "sList"=";" 
    "sLongDate"="d MMMM yyyy 'г.'" 
    "sMonDecimalSep"="," 
    "sMonGrouping"="3;0" 
    "sMonThousandSep"=" " 
    "sNativeDigits"="0123456789" 
    "sNegativeSign"="-" 
    "sPositiveSign"="" 
    "sShortDate"="dd.MM.yyyy" 
    "sThousand"=" " 
    "sTime"=":" 
    "sTimeFormat"="H:mm:ss" 
    "sShortTime"="H:mm" 
    "sYearMonth"="MMMM yyyy" 
    "iCalendarType"="1" 
    "iCountry"="7" 
    "iCurrDigits"="2" 
    "iCurrency"="1" 
    "iDate"="1" 
    "iDigits"="2" 
    "NumShape"="1" 
    "iFirstDayOfWeek"="0" 
    "iFirstWeekOfYear"="0" 
    "iLZero"="1" 
    "iMeasure"="0" 
    "iNegCurr"="5" 
    "iNegNumber"="1" 
    "iPaperSize"="9" 
    "iTime"="1" 
    "iTimePrefix"="0" 
    "iTLZero"="0" 
     
    [HKEY_CURRENT_USER\Control Panel\International\Geo] 
    "Nation"="203"


Some system files needed to be renamed. I don't think it's worth experimenting with your system these days. Someday this code will be rewritten  :biggrin:

fearless

Came across this font with glyphs - Segoe MDL2: https://docs.microsoft.com/en-us/windows/apps/design/style/segoe-ui-symbol-font

Only reference download I found is this: https://github.com/MicrosoftDocs/windows-uwp/issues/2320:


https://aka.ms/SegoeFonts - but appears to be an older version?



On Windows 10 it should be already installed, which you can check by viewing character map

It has glyphs for checkbox etc so could be useful. Also could include the font as a resource or as binary in a distribution and load font from memory/resource


Biterider

Hi fearless
Good catch. It is a very useful font, especially the fixed width allows the construction of many things, like the coloring described by MS in the link you provided.
It also has many advantages for the TextView control.  :cool:

Thanks for pointing it out.

Biterider

fearless

Yeh was looking at something similar for maybe use in some of the Modern UI stuff, maybe the caption bar and checkbox controls.
Also come across these fonts that have a lot of glyphs that could be useful as well:

https://github.com/Remix-Design/RemixIcon
https://github.com/icons8/line-awesome

fearless

Also came across this version that is not restricted license wise compared to Microsoft's Segoe UI and Segoe MDL2 assets - so is free to redistribute:

Has comparable assets to the Segoe MDL2 font and comes as a TTF. One version with popular web brands and the other without those brands.


http://xtoolkit.github.io/Micon/icons/

https://github.com/xtoolkit/Micon