Fonts in embedded wine
Glad that notepad++ is now available in Ubuntu. And no, I won't switch to NotepadQQ -- its features are not nearly as many as in Notepad++
As far as I understand, it is run via sort of embedded Wine.
As always, fonts in menus are way too small in Wine applications, like this:
Usually, it is fixed via winecfg.
But, how to fix fonts in an embedded wine?
I have the following things in ~/snap/notepad-plus-plus:
.
├── 140
│ └── notepad-plus-plus
│ ├── backup
│ ├── localization
│ ├── plugins
│ ├── themes
│ └── wine-platform
├── common
│ ├── .cache
│ │ ├── fontconfig
│ │ └── winetricks
│ ├── .config
│ │ ├── fontconfig
│ │ └── menus
│ ├── .local
│ │ └── share
│ └── .wine
│ ├── dosdevices
│ └── drive_c
└── current -> 140fontconfig contains a file fonts.conf with the following content:
<fontconfig> <dir>/snap/notepad-plus-plus/140/wine-platform/usr/share/fonts</dir> <dir>/usr/local/share/fonts</dir> <dir>/usr/share/fonts</dir> <include ignore_missing="yes">conf.d</include> <cachedir prefix="xdg">fontconfig</cachedir> <cachedir>/home/NAME/.cache/fontconfig</cachedir>
</fontconfig>Any clues?
33 Answers
You can run winecfg in npp snap like this notepad-plus-plus.wine winecfg then change your screen resolution dpi.
Use Playonlinux to configure wine
I do everything wine-related with playonlinux. It makes setup and maintenance around wine stuff much easier.
Install Playonlinux
On Ubuntu 18.04 just do
sudo apt install playonlinuxOn Ubuntu 16.04 follow the following steps from this guide
sudo add-apt-repository ppa:noobslab/apps sudo apt-get update sudo apt-get install playonlinuxDownload the Notepad++ 32bit version from the offical download-page.
- Start Playonlinux. Open the start-menu and begin typing
playonlinuxthen click it. - Running Playonlinux: Click the
Installicon. In the dialog, click the search box in Playonlinux and writeNotepadselect the top entry and clickInstall. - There are two dialogs to click
next, then a dialog which ask if you want to download or use a allready downloaded installer - this one has aa magnifying glas icon on the left. Click the maginfying glas entry.Browse to your downloaded
npp.7.6.Installer.exefile and clickOk.
This will install notepad++ with known good wine settings.
Just run this command (on a single line):
WINEPREFIX=~/snap/notepad-plus-plus/common/.wine winecfgthen, select the "graphics" tab, and set the screen resolution to a reasonable value (I have 150 DPI).
S. Nokkia