Git Product home page Git Product logo

Comments (9)

mmtrt avatar mmtrt commented on May 31, 2024

does font render fine on normal wine install in npp aside from this snap.

from notepad-plus-plus.

brlin-tw avatar brlin-tw commented on May 31, 2024

Though the font selection is ugly as hell, yes:

screenshot_20180617_032431

Wine from WineHQ official deb archive, 3.0.1

from notepad-plus-plus.

mmtrt avatar mmtrt commented on May 31, 2024

alright can you tell me the output all of these from regedit, export them individually also paste their contents or reg files so I could implement it further into the snap thanks.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes

HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements

also tell default font name used on npp as well.

from notepad-plus-plus.

brlin-tw avatar brlin-tw commented on May 31, 2024

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
    Lucida Sans Unicode    REG_MULTI_SZ    MINGLIU.TTC,PMingLiu\0SIMSUN.TTC,SimSun\0MSGOTHIC.TTC,MS UI Gothic\0BATANG.TTC,Batang
    Microsoft Sans Serif    REG_MULTI_SZ    MINGLIU.TTC,PMingLiu\0SIMSUN.TTC,SimSun\0MSGOTHIC.TTC,MS UI Gothic\0BATANG.TTC,Batang
    Tahoma    REG_MULTI_SZ    MINGLIU.TTC,PMingLiu\0SIMSUN.TTC,SimSun\0MSGOTHIC.TTC,MS UI Gothic\0BATANG.TTC,Batang

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes


HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
    Arial Baltic,186    REG_SZ    Arial,186
    Arial CE,238    REG_SZ    Arial,238
    Arial CYR,204    REG_SZ    Arial,204
    Arial Greek,161    REG_SZ    Arial,161
    Arial TUR,162    REG_SZ    Arial,162
    Courier New Baltic,186    REG_SZ    Courier New,186
    Courier New CE,238    REG_SZ    Courier New,238
    Courier New CYR,204    REG_SZ    Courier New,204
    Courier New Greek,161    REG_SZ    Courier New,161
    Courier New TUR,162    REG_SZ    Courier New,162
    Helv    REG_SZ    MS Sans Serif
    Helvetica    REG_SZ    Arial
    MS Shell Dlg    REG_SZ    PMingLiU
    MS Shell Dlg 2    REG_SZ    Tahoma
    Times    REG_SZ    Times New Roman
    Times New Roman Baltic,186    REG_SZ    Times New Roman,186
    Times New Roman CE,238    REG_SZ    Times New Roman,238
    Times New Roman CYR,204    REG_SZ    Times New Roman,204
    Times New Roman Greek,161    REG_SZ    Times New Roman,161
    Times New Roman TUR,162    REG_SZ    Times New Roman,162
    Tms Rmn    REG_SZ    MingLiU

HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements

reg: The system was unable to find the specified registry key or value

NOTE:

  • The result is under LANG=zh_TW.UTF-8
  • This is an upstream build, should have different settings than builds from distributions

also tell default font name used on npp as well.

It seems to be using PMingLiU, but it really should use Noto Sans CJK/Droid Sans Fallback.

from notepad-plus-plus.

mmtrt avatar mmtrt commented on May 31, 2024

@Lin-Buo-Ren thanks and I've working local npp snap with that noto cjk sc font that looks way better then PMingLiU so I'm implementing a check for detecting locale then use cjk font if user locale is on zh_* and I might implement command flag to change fonts to cjk

can you tell output of locale inside of npp snap shell of locale.

  • sudo snap run --shell notepad-plus-plus

then run

  • locale

PS: do tell locale output of your system as well.

from notepad-plus-plus.

brlin-tw avatar brlin-tw commented on May 31, 2024

In snap:

$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_TW.UTF-8
LANGUAGE=zh_TW:zh_CN
LC_CTYPE="zh_TW.UTF-8"
LC_NUMERIC="zh_TW.UTF-8"
LC_TIME="zh_TW.UTF-8"
LC_COLLATE="zh_TW.UTF-8"
LC_MONETARY="zh_TW.UTF-8"
LC_MESSAGES="zh_TW.UTF-8"
LC_PAPER="zh_TW.UTF-8"
LC_NAME="zh_TW.UTF-8"
LC_ADDRESS="zh_TW.UTF-8"
LC_TELEPHONE="zh_TW.UTF-8"
LC_MEASUREMENT="zh_TW.UTF-8"
LC_IDENTIFICATION="zh_TW.UTF-8"
LC_ALL=

Host:

LANG=zh_TW.UTF-8
LANGUAGE=zh_TW:zh_CN
LC_CTYPE="zh_TW.UTF-8"
LC_NUMERIC="zh_TW.UTF-8"
LC_TIME="zh_TW.UTF-8"
LC_COLLATE="zh_TW.UTF-8"
LC_MONETARY="zh_TW.UTF-8"
LC_MESSAGES="zh_TW.UTF-8"
LC_PAPER="zh_TW.UTF-8"
LC_NAME="zh_TW.UTF-8"
LC_ADDRESS="zh_TW.UTF-8"
LC_TELEPHONE="zh_TW.UTF-8"
LC_MEASUREMENT="zh_TW.UTF-8"
LC_IDENTIFICATION="zh_TW.UTF-8"
LC_ALL=

from notepad-plus-plus.

mmtrt avatar mmtrt commented on May 31, 2024

Test 7.5.6 (62) on edge, gui font should be now Noto Sans CJK TC Regular though you have to manually set npp font to Noto Sans CJK TC Regular for text.

Make sure remove .wine folder from ~/snap/notepad-plus-plus/common/ before test.

from notepad-plus-plus.

brlin-tw avatar brlin-tw commented on May 31, 2024

screenshot_20180617_183825

The UI font change seems to be effective however the application locale are forced to English, it's switchable in setting UI though, just not default.

from notepad-plus-plus.

brlin-tw avatar brlin-tw commented on May 31, 2024

screenshot_20180617_184050

Yep it works properly now, thanks!

from notepad-plus-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.