Proxomitron Program - discussions welcome => Questions and Answers => Topic started by: arfirebird on May 13, 2002, 07:46:48 PM
Title: Change small fonts - probably simple question
Post by: arfirebird on May 13, 2002, 07:46:48 PM
OK, I have made a filter to increase small font size on some pages and it works but I want to add a restriction. Here is the matching expression: size=-1|size="-1"|size=-2|size="-2"|size=1|size=2|size="1"|size="2" (and there is probably a simplier way of inputting that) and the replacement text: size="3" Now, my question is - this works for changing small text size, but it also works to change things like the default size for dropdown boxes which I don't want it to do. I don't want to restrict it by changing the matching expression to "font size=-1" for example because I still want it to match if it encounters something in the webpage like "font face=xxxx size=xxx". So I was trying to get it to match using a bounds limitation with something like <font*>*</font>... I would like for it to only match a "size=xxx" statement if it was between a <font> and </font>. I'm sure there's a simple way to do this but I haven't figured it out yet. Thanks
Title: Change small fonts - probably simple question
Post by: Jor on May 13, 2002, 08:10:08 PM
Try this filter:
Name = "Kill small fonts" Active = TRUE Multi = TRUE Bounds = "<font*>" Limit = 256 Match = "1 size=$AV(-1|-2|1|2) 2" Replace = "1 size="3" 2"
By the way, the Opera browser can also enlarge too small fonts.
Title: Change small fonts - probably simple question
Post by: arfirebird on May 13, 2002, 09:23:06 PM
Thanks a lot for the help. That did the trick nicely. Appreciate it