Bug 142827 - Want character width scale button+mini-dialog
Summary: Want character width scale button+mini-dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New
  Show dependency treegraph
 
Reported: 2021-06-12 19:16 UTC by Eyal Rozenberg
Modified: 2021-06-18 08:47 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2021-06-12 19:16:56 UTC
The text formatting toolbar should have a button for setting the character width scale. This button will not be a toggle, obviously but should have controls for setting the scale: 

* An updown control with a textbox for typing in a percentage and/or
* Some kind of scrollbar (from 0 to something big; or even a scrollbar mapping 0 to infinity with a atan(offset) kind of function) and/or

or maybe something else I haven't thought about.
Comment 1 V Stuart Foote 2021-06-12 22:20:18 UTC
There is no UNO command, setting a text-width value is present in the Character dialog's 'Position' panel.

Don't see the advantage/requirment of adding this to a toolbar.  The dialog seems sufficient.
Comment 2 Eyal Rozenberg 2021-06-12 22:52:58 UTC
(In reply to V Stuart Foote from comment #1)
> Don't see the advantage/requirement of adding this to a toolbar.  The dialog
> seems sufficient.

Different font families have different width. When character width is at all important, then when you change the font family you also want to tweak the width.

If inter-character spacing is significant enough to merit a toolbar button (and UNO command?), then certainly character width is, as well.


Note I didn't suggest this should be visible on the toolbar by default.
Comment 3 Thomas Lendo 2021-06-15 14:07:36 UTC
+1 from me for such an enhanced toolbar command but not only for Impress - also for Writer.

People want change so many things but couldn't find the settings or are afraid of dialog windows like Character dialog. The possibility for changing it directly (toolbar, notebookbar ...) would make it better and easier usable.
Comment 4 Eyal Rozenberg 2021-06-15 15:08:07 UTC
(In reply to Thomas Lendo from comment #3)

1. Ah, so, yes, sure, for Writer too, definitely. Changing the component.

2. Can you confirm the bug then?

3. It may also be useful to put this in the "all properties" sidebar in Impress.
Comment 5 V Stuart Foote 2021-06-15 16:15:25 UTC
@Regina, *

So this would need to apply "style:text-properties style:text-scale=" as a percentage of default font metric to horizontally scale either a Text run 'T1' or to a Paragraph 'P1' 

As in ODF 20.377 [1] against text properties ODF 16.27.28 [2]

That is implemented now in the Character dialog -> Position -> Scaling 'Scale Width" as a spin box in all modules.

A new TB implementation would need to calculate the context in which the scaling would be applied to a selection--and I'd assume provide increase and decrese buttons and maybe means to fit within a frame/margin extent?

Not clear a TB control provides anything not already available from the Character dialog...

=-ref-=
[1] http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-style_text-scale

[2] http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-style_text-properties
Comment 8 Eyal Rozenberg 2021-06-15 17:53:01 UTC
(In reply to V Stuart Foote from comment #5)
> Not clear a TB control provides anything not already available from the
> Character dialog...

It provides what is already available in the character dialog, but outside the character dialog: On a toolbar and possibly on the properties sidebar.
Comment 9 Heiko Tietze 2021-06-17 12:50:21 UTC
Not a fan of unconditional "make everything possible". Toolbars are places to access frequently used functions, and that's not the fact for char width.

However, the idea received some appreciation, and having something hidden doesn't hurt too much. (It still has maintenance costs, at least.)

So provided we can scale in percentage (@Regina?), let's do it.
Comment 10 Eyal Rozenberg 2021-06-17 22:15:14 UTC
(In reply to Heiko Tietze from comment #9)
Well, width scaling characters is more frequent than you might expect... when you play with the font-family, you sometimes want to play with the width as well.

> So provided we can scale in percentage (@Regina?), let's do it.

Can you explain this last question? I mean, the dialog scaling control shows a percentage; I suggest exposing the same thing.
Comment 11 Heiko Tietze 2021-06-18 08:47:56 UTC
(In reply to Eyal Rozenberg from comment #10)
> ... the dialog scaling control shows a percentage
Then it might be not a question.