[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Font dialog
From: David Faure <faure () kde ! org>
Date: 2005-06-17 12:56:58
Message-ID: 200506171456.59020.faure () kde ! org
[Download RAW message or body]
On Monday 06 June 2005 00:29, pierre.stirnweiss_koffice@gadz.org wrote:
> Ok, I think I have not made myself clear enough. On using KWord I was a bit
> puzzled by the fact one could set sub/super and an offset from baseline and
> that they were additive (the exact offset of a text with subscript plus
> offset of 4 is unknown to the user). I think it would be more logical that
> sub/super would set a preset default value, and that "manual" offset and
> relative size would be for a "custom" text position.
OK, I agree.
> On Sunday 05 June 2005 20:03, David Faure wrote:
> > On Sunday 05 June 2005 22:46, pierre.stirnweiss_koffice@gadz.org wrote:
> > > - offset = 0 if subscript or superscript is checked. apparently
> > > KoTextFormat::save is dropping sub or super if offset != 0 anyway.
> >
> > Hmm, strange. We can definitely draw text with an offset even if it's not
> > subscript/superscript, the painting code handles it; so why not allow it...
> > Ah, save() is for OASIS, not for old XML. I think this is simply a bug in
> > KoTextFormat::save(). OK if I fix it to save the offset there?
>
> Yes but if I read the OASIS spec right, the offset can be either sub/super or
> a % value. So setting sub/super and an offset value will not be able to be
> saved in an OASIS file format (one has to drop either the sub/super or the
> value).
Ah, you are right. I think I confused offset and relative size.
> > > - relative text size is fixed in case of sub/super, This is the main
> > > getting item: if we load a document (OOo for example) with text-pos =
> > > "super 58%" (legal according to OASIS) we can either drop the 58% and use
> > > the normal 66%, which is no good, or convert it to Custom but then we do
> > > not keep the document intact on save again (not good either).
> >
> > I don't follow.
> > I see that we can load and save "super 58%" correctly, by setting
> > AlignSuper and relativetextsize=0.58, are you sure we can't handle it? Or
> > is that only a GUI issue?
>
> This is the problem I have with what I had in mind (not with the current
> dialog) : sub/super button would set a predefined value (without the
> possibility of changing them) and that "manually" set values would belong to
> a "custom" text position.
By "values" you mean both offset and size? Ok I guess we can still convert
<custom offset>,<custom size> to "super 58%" at saving time if we know
the default offset for "super". This would be a nicer XML than saving both
values numerically, for the reader applications that only support sub/super
and not custom sizes (I guess this is the whole reason for the sub and super
values...).
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic