Re: [Tiki-devel] Improved PluginFont
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Samstag, den 24.07.2021, 11:49 +0100 schrieb Jonny Bradley via TikiWiki-devel: > Hi Volker > > The filters we have are all (sort of) listed here: > > > https://gitlab.com/tikiwiki/tiki/-/blob/master/lib/core/TikiFilter.php > > and the one we need for this is called (somewhat incorrectly) > "imgsize" which is a regular expression filter allowing all css unit > definitions. This filter is no good for this purpose. It filters away "1.25em", "larger", "inherit" and more. > Thanks - do you do git at all? If so could you do a merge request? I've started learning Git now. I'll send a merge request. (isn't that called "pull request"?) > https://dev.tiki.org/How-to-Submit-a-Merge-Request > > Don't worry if not, i'll commit it for you (just this once! ;) Not needed. :-) Regards, Volker > > On 23 Jul 2021, at 18:20, Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> wrote: > > > > Hi! > > > > I've improved the Font Plugin. In the previous version, the font > > size > > could only be specified in pixels. I've made it possible to specify > > it > > in any of the ways, in which font sizes can be specified by the > > "font- > > size" CSS style. See here: > > > > https://www.w3.org/TR/CSS2/fonts.html#propdef-font-size > > > > Now you can say "{FONT(size=125%)}...{FONT}" or > > "{FONT(size=1.5em)}...{FONT}" or ... > > > > The changes were small. However, I've removed the "filter" property > > from the "size" argument. I don't understand the implications of > > this > > fully yet. > > > > I think the improved version should go into Tiki. :-) I'll update > > the > > documentation. > > > > The new version is attached. > > > > Cheers, > > Volker > > <wikiplugin_font.php>______________________________________________ > > _ > > TikiWiki-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel