Generic 'font' styling in CSS

2011-05-26 Thread Harriet Bazley
According to my reading of Chris Terran's StrongHelp CSS manual,
 
ought to be a shortcut for
 

However, the former doesn't seem to do anything for me in Netsurf,
whereas the latter does.
http://www.netsurf-browser.org/documentation/progress
states that implementation of 'font (shorthand)' is complete (with the
exception of the not-yet-implemented 'font-' variant), so have I got the
syntax wrong?

-- 
Harriet Bazley ==  Loyaulte me lie ==

I like work; it fascinates me; I can sit and look at it for hours.



Generic 'font' styling in CSS

2011-05-27 Thread Tim Hill
In article ,
   Harriet Bazley  wrote:
> So,  should work...
> and yes, it does.   :-)

http://www.w3schools.com/css/tryit.asp?filename=trycss_font

Is another good example. 

(For anyone not familiar, http://w3schools.com is an excellent resource.
Whilst full explanations are not always there, examining their code -
maybe cutting and pasting - pays dividends. I say maybe because it
doesn't work with Netsurf it seems.)

-- 
Tim Hill
..
www.timil.com




Re: Generic 'font' styling in CSS

2011-05-26 Thread Michael Drake
In article <95fd7ad951.harr...@blueyonder.co.uk>,
   Harriet Bazley  wrote:

> According to my reading of Chris Terran's StrongHelp CSS manual,

Best to use the spec.  You can also use a CSS validator.

>  

You must have the font-size then the font-familly after the other ones. 
You omit the font-size.

-- 

Michael Drake (tlsa)  http://www.netsurf-browser.org/



Re: Generic 'font' styling in CSS

2011-05-26 Thread Harriet Bazley
On 26 May 2011 as I do recall,
  Michael Drake  wrote:

> In article <95fd7ad951.harr...@blueyonder.co.uk>,
>Harriet Bazley  wrote:
>
> > According to my reading of Chris Terran's StrongHelp CSS manual,
>
> Best to use the spec.  You can also use a CSS validator.

The properties that can be set, are (in order): "font-style
font-variant font-weight font-size/line-height font-family"

The font-size and font-family values are required. If one of the
other values are missing, the default values will be inserted, if
any.

http://www.w3schools.com/css/pr_font_font.asp


How awkward; I don't normally want to fiddle around with the font
*size*...
So what I want is "100%", presumably, to avoid altering it.


> >  
>
> You must have the font-size then the font-familly after the other ones.
> You omit the font-size.
>
So,  should work...
and yes, it does.   :-)

-- 
Harriet Bazley ==  Loyaulte me lie ==

The only rose without thorns is friendship.



Re: Generic 'font' styling in CSS

2011-05-27 Thread John Williams
In article <51d9dc4a02...@timil.com>,
   Tim Hill  wrote:

> For anyone not familiar, http://w3schools.com is an excellent resource.

 [Snip]

> I say maybe because it doesn't work with Netsurf it seems.

The problem is with NetSurf replacing spaces with hard spaces.

Easily solved using, for example, !ConvText using a script line of the form:

  [160]:[32]  |This turns a hard space into a normal one

- or you could use your favourite text editor to search and replace.


It can be useful to have a display font which shows hard spaces differently
to check.  A bit annoying, tho', for displaying news and mail from lazy
typers who catch the Alt key whilst typing spaces.

John




Re: Generic 'font' styling in CSS

2011-05-27 Thread Tim Hill
In article <51d9dde821joh...@ukgateway.net>, John Williams
 wrote:
> In article <51d9dc4a02...@timil.com>, Tim Hill  wrote:

[snip]

Okay, you can forget what I posted, which was wrong. A re-boot reinstated
NetSurf (r12443)'s ability to cut'n'paste and I have not noticed problems
with any hard spaces either.

-- 
Tim Hill
..
www.timil.com




Hard spaces (was Generic 'font' styling in CSS)

2011-05-27 Thread Gavin Wraith
In message <51d9dde821joh...@ukgateway.net> you wrote:

> The problem is with NetSurf replacing spaces with hard spaces.
> 
> Easily solved using, for example, !ConvText using a script line of the form:
> 
>   [160]:[32]  |This turns a hard space into a normal one
> 
> - or you could use your favourite text editor to search and replace.
>  
> It can be useful to have a display font which shows hard spaces differently
> to check.  A bit annoying, tho', for displaying news and mail from lazy
> typers who catch the Alt key whilst typing spaces.

Unintended hard spaces can be a nuisance. That is why RiscLua, for example,
parses hard spaces as spaces, along with tabs and newlines. Inside strings 
and comments they are not translated. 

-- 
Gavin Wraith (ga...@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/