Pengwin icon indicating copy to clipboard operation
Pengwin copied to clipboard

Italic fonts in Chrome

Open goranovs opened this issue 5 years ago • 3 comments

Describe the bug I'm not sure if this is x410, Pengwin or Chrome bug, but it happens when I'm using Pengiwn and I'm going to report it here.

When I launch VSCode from within Pengwin (aka. Windowed App via x410) and I open a webpage with Chrome (on Windows) that uses the default fonts Arial or Times New Roman the text is styled in italic. All other applications work as expected without font issues.

I only can assume that Chrome is thinking that the new tab is launched under Linux when Windowed App is running and it tries to find the fonts with magic. If you refresh the italic tab or the normal tab they both stay with the font style used on load even if you close the VSCode.

To Reproduce Steps to reproduce the behavior:

  1. Open Pengwin "terminal" (I'm using a shortcut on my desktop)
  2. Type code . in the terminal (VSCode is launched)
  3. Open Chrome on Windows
  4. Search for "Pengwin" in Google (or create a dummy HTML page with no specific font defined in the styles)
  5. See the text in the webpage is styled in italic

Expected behavior The text in the webpage must use the default font style aka. no italic

Screenshots After launching VSCode image

Before launching VSCode image

Additional context I've installed only VSCode, NodeJs/NPM & Ruby with pengiwn-setup and MySQL & PHP 7.3 manually

Basic Troubleshooting Checklist

[x] I have searched Google for the error message. [x] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled. [x] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues. [x] I have searched the Pengwin issues page: https://github.com/WhitewaterFoundry/Pengwin/issues. [ ] I have reset Pengwin: Settings->Apps->Apps & features->Pengwin->Advanced Options->Reset. [ ] I have disabled and re-enabled WSL in Windows Features. [ ] I have run Windows 10 updates and restarted. (I have the latest)

Pengwin Version

1.2.3.0

Windows Build

OS Name: Microsoft Windows 10 Pro OS Version: 10.0.17763 N/A Build 17763 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free BIOS Version: American Megatrends Inc. UX550GEX.302, 9.10.2018

goranovs avatar Apr 28 '19 10:04 goranovs

Hello

Very strange issue indeed. We will try to reproduce it.

Regards

crramirez avatar Apr 28 '19 13:04 crramirez

I've seen similar behavior when I was sharing my Windows fonts with WSL. I would see this sort of behavior and be unable to open any MS Office software. It seemed like WSL locked the directory when a GUI app was using one of the fonts.

bushidocodes avatar Apr 28 '19 20:04 bushidocodes

I can't recall if this is something from Pengwin or something that I added and then had to revert, but I have this in my script to setup a clean build:

# If running on WSL, wipe out the local.conf fonts file because WSL reuse of Windows host environment fonts caused issues using Windows apps while running X window apps
if grep -q Microsoft /proc/version; then
  echo "Ubuntu on Windows"
  sudo rm -f /etc/fonts/local.conf
fi

bushidocodes avatar Apr 28 '19 21:04 bushidocodes