You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Susan Cline <ho...@pacbell.net> on 2006/03/02 22:43:40 UTC
Font size for the derby tutorial is small ... is there a way to increase it?
Hi,
Other than using the browser settings, is there a way in forrest to increase the font size
of the code block sections in:
http://db.apache.org/derby/papers/DerbyTut/ij_intro.html
I'd like to do something in forrest with code blocks using this as a template, but the font is too
small for my eyes : <
Thanks,
Susan
Re: Font size for the derby tutorial is small ... is there a way
to increase it?
Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Susan Cline wrote:
> --- "Jean T. Anderson" <jt...@bristowhill.com> wrote:
>>Jean T. Anderson wrote:
>>>Susan Cline wrote:
>>>
>>>>Hi,
>>>>
>>>>Other than using the browser settings, is there a way in forrest to increase the font size
>>>>of the code block sections in:
>>>>
>>>>http://db.apache.org/derby/papers/DerbyTut/ij_intro.html
>
> [snip]
>
>>Try it now and see how you like it -- you may need to reload the page in
>>your browser.
>> ...
>
> Thanks Jean! I feel like I just got glasses :-)
lol! I'm unusually the one who needs the eyes checked!
> If I would like to add a new style to the forrest skinconf.xml, is it okay to do so? I'm not sure
> I'll need it now, but just wanted to know for general reference.
sure, but let's coordinate changes to the skinconf.xml on derby-dev.
-jean
Re: Font size for the derby tutorial is small ... is there a way to increase it?
Posted by Susan Cline <ho...@pacbell.net>.
--- "Jean T. Anderson" <jt...@bristowhill.com> wrote:
> Jean T. Anderson wrote:
> > Susan Cline wrote:
> >
> >>Hi,
> >>
> >>Other than using the browser settings, is there a way in forrest to increase the font size
> >>of the code block sections in:
> >>
> >>http://db.apache.org/derby/papers/DerbyTut/ij_intro.html
[snip]
>
> Try it now and see how you like it -- you may need to reload the page in
> your browser.
>
> incidently, this is one of those things that is really trivial to change.
>
> -jean
>
>
> > The longer answer ... I didn't like the forrest-provided <source> style
> > for the DerbyTut because it didn't have enough contrast with the
> > surrounding text. So I added a "code-block" style to the forrest
> > skinconf.xml:
> >
> > p.code-block {
> > margin-left: 2em;
> > padding: .5em;
> > background-color: #f0f0f0;
> > font-family: Monospace, Courier;
> > font-size: smaller;
> > white-space:pre;
> > }
> >
> > You use the code-block style like this in the source xml:
> >
> > <p class="code-block">create table derbyDB(num int, addr varchar(40));
> > insert into derbyDB values (1956,'Webster St.');
> > select * from derbyDb;
> > </p>
[snip]
> > -jean
Thanks Jean! I feel like I just got glasses :-)
If I would like to add a new style to the forrest skinconf.xml, is it okay to do so? I'm not sure
I'll need it now, but just wanted to know for general reference.
Susan
Re: Font size for the derby tutorial is small ... is there a way
to increase it?
Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Jean T. Anderson wrote:
> Susan Cline wrote:
>
>>Hi,
>>
>>Other than using the browser settings, is there a way in forrest to increase the font size
>>of the code block sections in:
>>
>>http://db.apache.org/derby/papers/DerbyTut/ij_intro.html
>>
>>I'd like to do something in forrest with code blocks using this as a template, but the font is too
>>small for my eyes : <
>
>
> The quick answer is yes, I can increase that font size.
>
Try it now and see how you like it -- you may need to reload the page in
your browser.
incidently, this is one of those things that is really trivial to change.
-jean
> The longer answer ... I didn't like the forrest-provided <source> style
> for the DerbyTut because it didn't have enough contrast with the
> surrounding text. So I added a "code-block" style to the forrest
> skinconf.xml:
>
> p.code-block {
> margin-left: 2em;
> padding: .5em;
> background-color: #f0f0f0;
> font-family: Monospace, Courier;
> font-size: smaller;
> white-space:pre;
> }
>
> You use the code-block style like this in the source xml:
>
> <p class="code-block">create table derbyDB(num int, addr varchar(40));
> insert into derbyDB values (1956,'Webster St.');
> select * from derbyDb;
> </p>
>
> I can remove that "font-size: smaller;" line -- I agree the font is
> really small, and especially so if you set your browser font to small.
>
> I'll also add a note about the code-block style to
> http://db.apache.org/derby/papers/derby_web.html .
>
> -jean
Re: Font size for the derby tutorial is small ... is there a way
to increase it?
Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
Susan Cline wrote:
> Hi,
>
> Other than using the browser settings, is there a way in forrest to increase the font size
> of the code block sections in:
>
> http://db.apache.org/derby/papers/DerbyTut/ij_intro.html
>
> I'd like to do something in forrest with code blocks using this as a template, but the font is too
> small for my eyes : <
The quick answer is yes, I can increase that font size.
The longer answer ... I didn't like the forrest-provided <source> style
for the DerbyTut because it didn't have enough contrast with the
surrounding text. So I added a "code-block" style to the forrest
skinconf.xml:
p.code-block {
margin-left: 2em;
padding: .5em;
background-color: #f0f0f0;
font-family: Monospace, Courier;
font-size: smaller;
white-space:pre;
}
You use the code-block style like this in the source xml:
<p class="code-block">create table derbyDB(num int, addr varchar(40));
insert into derbyDB values (1956,'Webster St.');
select * from derbyDb;
</p>
I can remove that "font-size: smaller;" line -- I agree the font is
really small, and especially so if you set your browser font to small.
I'll also add a note about the code-block style to
http://db.apache.org/derby/papers/derby_web.html .
-jean