Comments (5)
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.
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.
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.
@kerams please test latest nightly. If issue persists, file a minimal sample for further investiagtion
from avalonia.
@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)
- 2-Way Binding to IObservable-like object (+XAML support) HOT 1
- Creating Popup In Code-behind HOT 1
- IBitmap is internal but the docs say it's public HOT 4
- Invoke on UI thread with `Dispatcher` causes `PlatformNotSupportedException` in `StartWithClassicDesktopLifetime`
- Make Avalonia not rely on runtime marshaling
- add support for Rotate3DTransform in TransformOperations.Parse HOT 1
- ListBox deselects selected item when calling Move() on bound ObservableCollection
- TextBox cannot input any characters in the mobile browser Edge HOT 9
- ContextMenu HOT 3
- DataGrid editing does not change Background Color and unreadable in Dark Mode HOT 1
- `WinFormsAvaloniaControlHost` throws an exception in designer
- NumericUpDown tab index ignored on Windows HOT 1
- Menu Item InputGesture does not display when using MVVM HOT 1
- Clicking the title bar with the mouse causes frame drops and freezes HOT 3
- WindowState does not reflect correct state on Windows HOT 8
- When dragging a file onto the App window
- Context menu keyboard shortcut ignored until menu is visible at least once (Windows) HOT 2
- ILauncher is not working in browser HOT 1
- Avalonia.Browser 11.0.11 UP 11.1.0-beta2 ERROR HOT 3
- Name table parsing is incorrect HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.