|
|
Log in / Subscribe / Register

High resolution displays and GNOME

High resolution displays and GNOME

Posted Aug 8, 2013 10:01 UTC (Thu) by alexl (guest, #19068)
In reply to: High resolution displays and GNOME by njwhite
Parent article: High resolution displays and GNOME

CSS defines the term "px" for this (with a very interesting definion [1]). OSX uses "points".

Unfortunately we're in a situation where a of code already uses the term "pixel", and we're keeping that API, just making it do something slightly different. That meant it hard to apply a new name to all these existing places.

em:s are useful in some places, like maybe padding and line spacing. Not so much for e.g. border widths, raster images, etc.

[1] http://www.w3.org/TR/2013/CR-css3-values-20130730/#refere...


to post comments

High resolution displays and GNOME

Posted Aug 8, 2013 10:34 UTC (Thu) by njwhite (guest, #51848) [Link] (1 responses)

> em:s are useful in some places, like maybe padding and line spacing. Not so much for e.g. border widths, raster images, etc.

True. Though reference pixels aren't a great way of describing raster images either (you'd want real pixels really, or ideally of course vector everywhere), and border widths might be better served with something like "thin" / "medium" / "thick". You'd lose a certain amount of pixel perfect expressability, but in reality you do anyway when you deal with varying pixel densities.

> Unfortunately we're in a situation where a of code already uses the term "pixel", and we're keeping that API, just making it do something slightly different.

I see that, and your abstract pixel way is a pretty clever hack to make things work well with new screens. But I wonder whether we can imagine a better way to lay things out going for the future. I haven't actually coded GTK+ much at all, or Qt (Tk and CSS are the only graphics layout engines I know well), but perhaps there are already better systems available that I'm just ignorant of.

High resolution displays and GNOME

Posted Aug 9, 2013 17:33 UTC (Fri) by zenaan (guest, #3778) [Link]

> but perhaps there are already better systems available that I'm just ignorant of.

Enlightenment's e* elibs?
My understanding is that they are all-singing all-dancing when it comes to ultimate scalability and declaratively-expressed UIs...
Just my hearsay though.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds