Author Topic: TextView  (Read 13852 times)

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 1083
  • ObjAsm Developer
    • ObjAsm
Re: TextView
« Reply #45 on: May 15, 2021, 10:09:01 PM »
I rebooted the system on all these last attempts and did not succeed.  :sad:

LiaoMi

  • Member
  • *****
  • Posts: 1055
Re: TextView
« Reply #46 on: May 15, 2021, 10:29:29 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.

Code: [Select]
   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

  • Member
  • ****
  • Posts: 578
    • Github
Re: TextView
« Reply #47 on: September 02, 2021, 02:25:26 AM »
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

fearless

ASUS Crosshair 8 Hero, AMD 5950X, 32GB, MSI 5700XT, NZXT Kraken Z73, Seasonic 1000W PSU

Github Twitter Mastodon Gitbook

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 1083
  • ObjAsm Developer
    • ObjAsm
Re: TextView
« Reply #48 on: September 02, 2021, 03:54:31 AM »
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

  • Member
  • ****
  • Posts: 578
    • Github
Re: TextView
« Reply #49 on: September 02, 2021, 06:00:40 AM »
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

ASUS Crosshair 8 Hero, AMD 5950X, 32GB, MSI 5700XT, NZXT Kraken Z73, Seasonic 1000W PSU

Github Twitter Mastodon Gitbook

fearless

  • Member
  • ****
  • Posts: 578
    • Github
Re: TextView
« Reply #50 on: September 04, 2021, 09:06:18 AM »
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

fearless

ASUS Crosshair 8 Hero, AMD 5950X, 32GB, MSI 5700XT, NZXT Kraken Z73, Seasonic 1000W PSU

Github Twitter Mastodon Gitbook