So, I have everyone, my name is Balash Vargo, and I'm working with
Alotropia, I'm with it not working, okay, so I will talk much louder, is it better?
So in this presentation I would like to introduce a new small feature, but I worked on last
year, but I couldn't have time to talk about it on the last label count, so I will present
it here, it's the glue effect on text in different shapes, as you can see already on the
main title, the presentation has a text glue effect, and it wouldn't be implemented, it's
already the title wouldn't be visible, so let's start it.
And history about the glue effect in LibreOffice, in LibreOffice we could already apply
glue and soft edge effects for shape objects, in the feature where I've worked in LibreOffice
since version 7, as you can see on the image, but we couldn't apply any glue effect on individual
text in shapes, so check what I'm talking about, there is an example, but I mentioned
the previous slide, as you can see on the left picture, there are two examples from Microsoft
Office, with a green and the white colored text glue effect, and on the right side, the
right side after we loaded the same document in LibreOffice, the green effect disappeared,
and the white one as well, which make the second text even invisible on the black background.
So let's see what was implemented, first of all, three new properties were added, named
the glue, text color, the text radius, and the text transparency for the shapes, then
had to create a new text glue primitive for rendering and storing the text glue effect, then
I had to add some new images, such as a new panel on the sidebar, and the last two
part was the OXML Import Export, and the ODS implementations, finally some unit tests in
the end.
So for creating the new text glue effect, I had to create a new text glue primitive class for storing
all the new formations about the text clear effect, such as the color radius and transparency
of the glue, which is included in the color object.
The text radius specified the size of the glue, which is also depending from the font size.
So the rendered size of the text glue effect is the combination of the setted radius and
the font size of the text, which is calculated with a power function.
This is just a approximation function to make it look similar what it does in Microsoft Office.
So on this slide, there is some demonstration in the order of the different effects of
the shapes, which can be applied on them.
First, we have the sub-primitives, which contains all the main parts of the shapes, like
the shape, color, the field and the line colors.
Then the second one is the glue effect of the shape, which is needed to be added to the
primitive before the other effects.
Then we can create the text primitives from the text objects, which can have their individual
character level effects, such as character shadow or other character effects.
So we have to store them on the primitive first and then after that we have the text primitives,
we can use it and apply the text glue effect on the text, and then we need to put back
to the same position in the primitive containers.
So that's how it looks like, and the last one is the shadow of the shapes, which is
added in the last place on the containers of the effects.
Let's talk about the user implementations, the new text effect property panel was added on
the properties panel, which is activated when they are selecting an object with text frames.
It's only available in Calc, Impress and Rowe, because in Libra office right there are
different frames, which makes it more complicated or different, so it's not working
there.
Only in the other applications, and we have three options, the radius, the color, and transparency
of the glue option, which can be set in.
Okay, so one more important thing is that we are undering only the text, without any text
glue effect in edit mode of a text object, because the edit engine is not supporting
the text glue effect, it's quite limited, and it's rendering on the primitive level, as I
mentioned earlier, there is some short animation here, which represent how it looks
like, when we click inside a text frame, the glue effect disappear, and you can edit the text
and write after you click out, it appears again, which can be quite effective and make
it a bit faster, and yeah, I'm glad it's for the animation, a bit narrative, you're not
at it's working, yeah, so on this slide there are two screenshots about how it looks
like in Microsoft Office, and before the OXML implementation in the office, as you can see
there are cases in the text, become invisible in the text boxes, which is quite annoying
for the users, and let's see how it looks like after the OXML implementation, on this
example, we have different shape types, just to demonstrate it works in many cases, such
as in in placeholders, text boxes, basic and different kind of custom shapes, and the last
one, the ODS, import text ports, also works on, as you can see on the left image, and in
ODS we introduce the new feature extended attributes, the XMA glue text, the radius, the
text color, and the text transparency, for exporting these properties inside the glue
effects, and yeah, here's some related patch to this new feature and the first one contains
all the implementations, but I talked about, and last two was just some smaller fixes, and
thanks a lot for supporting this work, and also thanks for Armin and Regina for reviews
and advices, and thanks for questions, if they have, it's not, thank you for your time.