Changing display font size

632 views
Skip to first unread message

Eric Weir

unread,
Mar 27, 2013, 11:55:45 AM3/27/13
to TiddlyWiki

I want to change the size of the display font in the TWs I use on my iPad. It's been a long time since I've done any tweaking of a TW and I'm not sure how and where I do it---whether one value or several, in one location or several. 

I've skimmed the StyleSheet tiddler and settings that might do the trick are not obvious to me.

Guidance appreciated.  

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA

"You keep on learning and learning, and pretty soon
 you learn something no one has learned before." 

- Richard Feynman

FrD

unread,
Mar 27, 2013, 12:39:57 PM3/27/13
to tiddl...@googlegroups.com, TiddlyWiki
Hi Eric,

You could give a try to :
FontSizePlugin at http://tiddlywiki.squize.org/

It seems quite old but may be working well ...


FrD

Eric Weir

unread,
Mar 29, 2013, 8:57:17 AM3/29/13
to tiddl...@googlegroups.com

On Mar 27, 2013, at 12:39 PM, FrD wrote:

You could give a try to :
FontSizePlugin at http://tiddlywiki.squize.org/

It seems quite old but may be working well ...

Thanks, I'll give it a try. 

However, if it's the plugin that's being used in the head of the Lewcid site, it changes font size only in the story area. That's less a problem for me than font sizes in the header and right and left sidebars---places that need to be touched to control the TW on the iPad. 

If I could increase font size some percent across the board that would be cool. But any pointers would be welcome.

Sincerely,
------------------------------------------------------------------------------------------
Eric Weir

"With an ounce of willingness, everything can change."

- Kim



Tobias Beer

unread,
Mar 29, 2013, 12:32:32 PM3/29/13
to tiddl...@googlegroups.com, TiddlyWiki
You could try and give the entire body a different default font-size in your StyleSheet:

[[StyleSheet]]
body{
    font-size:1.5em;
}

At least, I don't see much of a reason to ever so often change font-sizes in ones own TiddlyWiki other than by using (or setting meaningful defaults for your) standard browser zoom.

Cheers, Tobias.

Tobias Beer

unread,
Mar 29, 2013, 1:47:42 PM3/29/13
to tiddl...@googlegroups.com, TiddlyWiki
Hi Eric,

For what it's worth I have created a modified version of FontSizePlugin that by default applies the font size to the entire document body...


Cheers, Tobias.

Eric Weir

unread,
Mar 29, 2013, 5:40:27 PM3/29/13
to tiddl...@googlegroups.com

On Mar 29, 2013, at 1:47 PM, Tobias Beer wrote:

For what it's worth I have created a modified version of FontSizePlugin that by default applies the font size to the entire document body...


Wow! Thanks, Tobias. 

When I copy the code to a tiddler and save it, though, I get "error in macro <<fontsize>>".

Tobias Beer

unread,
Mar 30, 2013, 7:43:44 AM3/30/13
to tiddl...@googlegroups.com
Hi Eric,

So, then, what does the error say? Or does it just say 'error'?
Did you tag the tiddler with 'systemConfig'?

Cheers, Tobias.

Eric Weir

unread,
Mar 30, 2013, 11:15:40 AM3/30/13
to tiddl...@googlegroups.com

On Mar 30, 2013, at 7:43 AM, Tobias Beer wrote:

Did you tag the tiddler with 'systemConfig'?

My apologies. That was it. I had the error earlier with the tiddler tagged but forgot to tag it this last time.

However, I now have another error. I put the command in the TopMenu. Now I'm getting a error message there. The command I used was "<<fontSize>>". The error message says "Error while executing <<fontSize>>: No such macro." I get the same error with "<<fontsize>>" and "<<FontSize>>".

------------------------------------------------------------------------------------------
Eric Weir

"Any assurance economists pretend to with 
regard to cause and effect is merely a pose."

- Emanuel Derman






Tobias Beer

unread,
Mar 30, 2013, 11:34:08 AM3/30/13
to tiddl...@googlegroups.com
Hi Eric,

Well, yes... sorry for the confusion. As I had refactored large bits of Saq's plugin — I decided to rename the macro itself as well. In other words, it's not compatible with Saq's original FontSizePlugin. So what you use is...

<<fontsize>>

...all lowercase — and that should finally work. ;-)

Cheers, Tobias.

Eric Weir

unread,
Mar 30, 2013, 12:36:40 PM3/30/13
to tiddl...@googlegroups.com

On Mar 30, 2013, at 11:34 AM, Tobias Beer wrote:

<<fontsize>>

...all lowercase — and that should finally work. ;-)

Thanks, Tobias.

It works in sidebaroptions but not topmenu. I'd prefer to have it in the topmenu. These are the relevant lines of my topmenu:

<span title="Close all tiddlers and open Welcome" style="cursor:pointer">''home''</span></a></li><li><<closeAll>></li><li><<newTiddler>></li><li><<newJournal "YYYY-0MM-0DD" "journal">><li><<saveChanges>></li><li><<doBackup>></li><li>{{nowrap{<<search>>}}}</li><li>[[?|Find]]</li><li>[[toggle tabs»|ToggleTiddlersBar]]</li><li><<tiddler ToggleRightSidebar with: "sidebar »">></li><li><<fontsize>></li></ul></div></html>

If it won't work there, I'd like to have better control of the position in the sidebar, but I'll wait to go into that till we see if it can be made to work in the topmenu.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA 

"We do not inherit the earth from our ancestors, 
we borrow it from our children." 

- Chief Seattle

FrD

unread,
Mar 30, 2013, 12:46:12 PM3/30/13
to tiddl...@googlegroups.com, TiddlyWiki
Hi Tobias,

Nice idea and nice coding !

I've got only a little pb : there seems to be an extra linefeed or cr after the three buttons ?

FrD

Eric Weir

unread,
Mar 30, 2013, 1:02:11 PM3/30/13
to tiddl...@googlegroups.com

On Mar 30, 2013, at 12:46 PM, FrD wrote:

> I've got only a little pb : there seems to be an extra linefeed or cr after the three buttons ?

I think that's the source of my latest problem. And why the position in the sidebar is a little weird.

I'll wait for Tobias to correct the code. I don't have a clue how to do it.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eew...@bellsouth.net

"The most important thing is the tee-shirt."

- Samara Alnafdage




Eric Weir

unread,
Apr 2, 2013, 8:24:14 AM4/2/13
to tiddl...@googlegroups.com, FrD, Tobias Beer

On Mar 30, 2013, at 12:46 PM, FrD wrote:

> Le vendredi 29 mars 2013 18:47:42 UTC+1, Tobias Beer a écrit :
>>
>> For what it's worth I have created a modified version of FontSizePlugin that by default applies the font size to the entire document body...
>>
>> http://fontsize.tiddlyspace.com
>
> Nice idea and nice coding !
>
> I've got only a little pb : there seems to be an extra linefeed or cr after the three buttons ?


Hi guys. As I mentioned earlier, I think this is the source of the last problem I reported---the change size button doesn't show up when put in topmenu and appears out of place when placed in sidebaroptions. How do I correct the problem.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eew...@bellsouth.net

"Hatred destroys. Love heals."

- Eknath Easwaran

Eric Weir

unread,
Apr 9, 2013, 9:59:49 AM4/9/13
to tiddl...@googlegroups.com, FrD, Tobias Beer

On Apr 2, 2013, at 8:24 AM, Eric Weir wrote:

> On Mar 30, 2013, at 12:46 PM, FrD wrote:
>
>> Le vendredi 29 mars 2013 18:47:42 UTC+1, Tobias Beer a écrit :
>>>
>>> For what it's worth I have created a modified version of FontSizePlugin that by default applies the font size to the entire document body...
>>>
>>> http://fontsize.tiddlyspace.com
>>
>> Nice idea and nice coding !
>>
>> I've got only a little pb : there seems to be an extra linefeed or cr after the three buttons ?
>
> Hi guys. As I mentioned earlier, I think this is the source of the last problem I reported---the change size button doesn't show up when put in topmenu and appears out of place when placed in sidebaroptions. How do I correct the problem?

Could someone help me with this? I'd like to use the plugin. I've looked at the code myself, but am unclear where the "three buttons" are nor do I see any CRs or LFs, not in Jedit X with invisibles set to show, nor in Vim.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
eew...@bellsouth.net

“On the basis of evidence we may be sure that
we are wrong but we can never be sure that we are right.”

- Richard Feynman

Tobias Beer

unread,
Apr 17, 2013, 6:07:24 AM4/17/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi Eric,

Sorry for the delay. I haven't tested it outside the TiddlySpace layout. I'll do that and update the code / styles so that it behaves nicely in a classic TiddlyWiki. I'll let you know when it's done.

When it comes to my plugins, you may in the future also use Github to report bugs (or make feature requests).

Cheers, Tobias.

Eric Weir

unread,
Apr 17, 2013, 12:12:01 PM4/17/13
to tiddl...@googlegroups.com, tiddl...@googlegroups.com, FrD, Tobias Beer
On Apr 17, 2013, at 6:07 AM, Tobias Beer <beert...@gmail.com> wrote:

Sorry for the delay. I haven't tested it outside the TiddlySpace layout. I'll do that and update the code / styles so that it behaves nicely in a classic TiddlyWiki. I'll let you know when it's done.

Thanks, Tobias. And no problem. Glad to have the plugin. And glad I was able to be attention.

When it comes to my plugins, you may in the future also use Github to report bugs (or make feature requests).

Will do.

Regards,
--------------------------------------------------------------------------------
Eric Weir
Decatur, GA. USA

"The invincible shield of caring
is a weapon from the sky
against being dead."

– Tao Te Ching, 67


FrD

unread,
May 15, 2013, 8:23:36 AM5/15/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi Tobias,

Did you have by chance any time to update this plugin ?
I'd like to use it in one of my TWs.

In opening http://fontsizeplugin.tiddlyspace.com/ I noticed a pb (probably related to the issue discussed here) : when you click on the tiddlylink 'FontSizePlugin' in the 'GettingStarted' tiddler, the tiddler plugin is displayed ant the font size of the page is increased at the same time.

Thanks

FrD

Eric Weir

unread,
May 15, 2013, 8:41:18 AM5/15/13
to tiddl...@googlegroups.com, tiddl...@googlegroups.com, FrD, Tobias Beer
On May 15, 2013, at 8:23 AM, FrD <soku...@gmail.com> wrote:

> Did you have by chance any time to update this plugin ?

I was just going to ask myself.

Tobias Beer

unread,
May 15, 2013, 9:19:21 AM5/15/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi Frd / Eric,

So much about GTD for personal stuff ;-)

This topic has been lingering in my personal inbox with a 
#next tag for quite some time now (along with soo much other stuff).

I hope I'll be getting my daily habbits to spending more time on personal passion projects, like TiddlyWiki.

Do keep on bumping this topic... (until, eventually) I will take care of it ...sorry for keeping you waiting
.

@FrD: Mhhh, that's interesting... haven't noticed yet. I'll see if I can find out why the plugin tiddler changes the font-size. It must be that the standard TiddlyWiki uses a different default font-size than FontSizePlugin in the @FontSizePlugin space, so that when the example is invoked, a different font size is applied.

Tobias.

Eric Weir

unread,
May 15, 2013, 2:08:26 PM5/15/13
to tiddl...@googlegroups.com, FrD, Tobias Beer

On May 15, 2013, at 9:19 AM, Tobias Beer wrote:

This topic has been lingering in my personal inbox with a #next tag for quite some time now (along with soo much other stuff).

I hope I'll be getting my daily habbits to spending more time on personal passion projects, like TiddlyWiki.

Do keep on bumping this topic... (until, eventually) I will take care of it ...sorry for keeping you waiting
.

No problem, Tobias. I can be patient. Just grateful that you went to the trouble to write the script in the first place.

------------------------------------------------------------------------------------------
“Guess, compute the consequences of the guess, 
check if they agree with the evidence, and if the evidence 
persistently refuses to agree, the guess is wrong.”

- Richard Feynman




FrD

unread,
Oct 6, 2013, 2:41:26 PM10/6/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi Tobias,

I don't want to bother you ; you seem very active for the time being.
Anything new about font size plugin ?

Thanks in advance

FrD
Message has been deleted

Tobias Beer

unread,
Oct 7, 2013, 4:47:10 AM10/7/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi FrD,

Here's the thing why the fontsize changes on...

When you first open the FontSizePlugin tiddler, this is the first time the controls are shown and the default fontsize of 100% is applied. It appears that setting the fontsize of the body element caused everything to increase for some reason. I have changed the default selector to #contentWrapper and now the effect is no longer there.

Thanks, Tobias.

FrD

unread,
Oct 7, 2013, 5:08:51 AM10/7/13
to tiddl...@googlegroups.com, FrD, Tobias Beer
Hi Tobias,

Works great !

Thanks a lot.

FrD
Reply all
Reply to author
Forward
0 new messages