Re: [Tiki-devel] Improved PluginFont
Jonny Bradley via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
Thanks - do you do git at all? If so could you do a merge 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! ;)
jonny
> 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