sheodox / alexandrite

A beautiful and convenient desktop-first alternate web UI for Lemmy.
https://alexandrite.app
GNU Affero General Public License v3.0
226 stars 19 forks source link

change font / no italics #84

Closed mbalch closed 10 months ago

mbalch commented 10 months ago

I'm loving alexandrite on Lemmy, it's so much better than the stock UI except I can't figure out how to set the default display font to normal instead of italics. I'm not sure if this is a feature request or a bug or maybe I have something misconfigured. Lemmy without alexandrite displays in normal font, no italics. Thanks!

sheodox commented 10 months ago

Thanks!

My guess is you might have a font installed but are missing the font variant that the site is trying to use so it falls back to the italics, because almost nothing on the site should be in italics. What OS and browser are you using?

mbalch commented 10 months ago

Win10/Chrome (latest build 118.0...). It looks like Cambria Math ?? is the standard font. I don't recall ever changing it. What should it be? Thank you.

sheodox commented 10 months ago

I'm not sure, but I want to see if that's actually the one in use. Can you try this:

  1. right click on some italic text and click "Inspect", dev tools will open
  2. somewhere you should see some tabs like "Styles, Computed, Layout, Event Listeners", click on "Computed"
  3. what font does it say at the bottom of that tab under "Rendered Fonts"

image

The fonts Alexandrite uses are -apple-system, "Noto Sans", Roboto, Ubuntu, "Segoe UI", sans-serif (the first one available on your system is used). I think Segoe UI is a font included with Windows so I'd have expected that to be in use instead of falling back to your default Cambria Math, so I'm wondering if at some point you tried installing Noto Sans but only installed the italic font variants.

mbalch commented 10 months ago

Here's what I was seeing:

image

I checked the Windows Font folder and only had Noto Sans Italic installed as you very correctly deduced, so I uninstalled that particular font. Reloading a.lemmy.world rendered the page without italics using Segoe-UI

image

I suppose alternately I could install the Noto Sans family from google but this works for me.

Thank you so much for taking the time to help me troubleshoot this. Alexandrite looks fantastic now. Cheers!

sheodox commented 10 months ago

Nailed it! Yeah no problem with keeping your fonts as is. :)