Giter Site home page Giter Site logo

Comments (5)

timunie avatar timunie commented on July 23, 2024

Windows and Linux may use different fonts which may lead to different results. Can you check applied font in dev tools? Also please file a minimal sample to reproduce if applicable.

from avalonia.

thevortexcloud avatar thevortexcloud commented on July 23, 2024

Also scaling on Linux works a bit differently. You can see if setting the value as described here fixes it:

https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI

from avalonia.

kerams avatar kerams commented on July 23, 2024

Noticed the same thing. I have a font that only covers a handful of glyphs in the private use area and if I reference it first in FontFamily in the resource dictionary, texts across the entire application are shifted upwards, even when they do not contain characters that use the said font. If I reference the font last, the shift does not occur.

from avalonia.

timunie avatar timunie commented on July 23, 2024

@kerams please test latest nightly. If issue persists, file a minimal sample for further investiagtion

from avalonia.

kerams avatar kerams commented on July 23, 2024

@timunie, https://github.com/kerams/font

There are 2 problems:

  • both text blocks should look the same - there's no reason (as far as I understand this) that a difference in the ordering of font references should result in vertical shifts, especially when it's the same glyphs that are being rendered
  • as it is, both text blocks look wrong - the left and right parts of the text in the text block should be aligned.

from avalonia.

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.