Change Measurement Unit to Pixels (px)?

Hi.

Is it possible to change the measurement units in LibreOffice, or at the VERY least in Calc, to pixels (px)? It seems the only options are “centimetre”, “millimetre”, “inch”, “pica”, and “point”.


Specs:

  1. LibreOffice v4.4.0.3, en_GB
  2. Win7 Pro SP1, en_GB

You do not say why you might want to use pixels as a type of measurement in LibO.

I cannot see a way of using pixels as a measurement unit for any text in LibreOffice. Text font size can be defined, as you say in “centimetre”, “millimetre”, “inch”, “pica”, and “point”. Pica and point are based on the inch. These are all absolute measurements. You can incorporate images which can be defined in pixels. However when you display the image, the actual number of pixels used will depend on the display manager and your view settings. …Peter

As petermau indicates, using pixels will give display dependent results. However, if you are consistent, then it should not cause trouble with internal changes. You could use a conversion factor from an absolute dimension. Common values are 72 and 96 pixels per inch, so you might be able to use inches but divide by the ppi before selecting the value. I have not tried this and can foresee issues with very small values.

@Petermau: It would be nice if you would just try to answer the question instead of questioning why I need to ask a question. If I ask it, then it means I must have a reason. Please don’t use this as a medium through which to attack my decision to ask a question.

Regarding your question, on the other hand, I’d like to use them as ruler measurements, not font measurements; nor did I ever mention anything about font sizes. The nature of these other units as absolute units is exactly the problem: because they are absolute, they are not consistent with certain elements other than font; pixels though are relative units, and thus anything a distance of 5px will be 5px and a proportional distance across any user’s screen (since it is relative to screen resolution, not absolute physical lengths), while 2 cm may easily be any distance depending on the screen size/type/etc.

Therefore, pixels are superior units for my needs, which are measuring column & row widths in spreadsheets. You could even test this out on your own, if you want: x points for column width is not the same as x points for row height; on the other hand, x pixels is exactly the same on both the column width and row height. To reiterate, it’s exactly the non-absolute, but relative, nature of the pixel unit that benefits me; to use anything else is frankly a pain.

I do appreciate both of your responding. Thank you. :slight_smile:

1 Like

It is currently not possibly to use relative units in the general settings. Note that not all pixels are square, so the idea that X pixels is the same linear length for width and height seems inaccurate.

Overall, though, for the purposes of row heights/column widths in spreadsheets, they’re typically close enough. nods But I do see your point. Thank you for telling me that; I did not know that.

In any case, that really sucks. I wish it could be done with relative units. Do you think there’s any chance of it being added as a feature sometime in the future?

Related enhancement request is fdo#86856.

Cool, thanks.

Pixels are like assembly language, almost no one uses them anymore. Everything now is virtual and scaled to fit. I know that seems strange, as I designed many things in pixels back in the day. And they’re still needed in hardware drivers. But in the real world of screen displays, web browsers, and printers all of this stuff is scaled, because like w/ higher level languages it turns out the key factor to consider is portability. But you can use something like gimp and still set pixels I think.

“Pixels are like assembly language, almost no one uses them anymore.” - This baffles me to the point I made an account to comment on it. Pixels are in very widespread use even in web development. Maybe it’s “not recommended”, but most every site will have plenty of uses of the px measurements in its CSS. Most graphics are still saved in PNG format, which definitely uses pixels directly. In my use-case for LibreOffice Calc, I just wanted to set a “border” by using a pixel measurement for an empty column. But I’m ending up disappointed instead.

1 Like

No, LibreOffice does not have an option to use pixels as measurement units.

So if you are doing web design, for instance, and want to create a quick mockup with Impress you’re out of luck.

The basic problem is that LibreOffice developers believe they’re smarter than normal users, and they refused to include pixels as unit of measure for years now. The exact bug report is this and, as you can see, was opened in 2004, nine years ago.

“Designing” by pixels is broken anyway, good there’s no such option.

2017 - 2004 = nine ? :wink:

Great answer! Thank you. So I may have to use “Windows ™” to get a site right for a client who insists on sending Docs an the images being Exactly the size she sends, but. i have used Linux for over 10 years now :frowning: Oh wait I just remembered another office suite I used years ago ( a pre fork) IF it is still being updated. And today’s update somehow broke the package manager anyway! I still have to resolve so I am ready to end my long relationship with L.O. .anyway :slight_smile:

erAck
You don’t take in mind that some people doing something display oriented. That’s for Writer and Calc. With Draw it’s even far worse. You can’t do any computer graphics at all with the app. So lack of pixels is a large flow by design.