Re: CSS for a RiscOS font and button

2018-02-09 Thread Tim Hill
In article ,
   Michael Drake  wrote:


> On 09/02/18 14:56, Jim Nagel wrote:

> > In CSS, is it possible to specify a particular RiscOS font?

> No, NetSurf only supports the generic font families.

This is a great tool for helping choose which generic font family.
https://www.w3schools.com/cssref/playit.asp?filename=playcss_font-family 
but not in NetSurf for presumably Javascript reasons.

-- 

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk



Re: CSS for a RiscOS font and button

2018-02-09 Thread Michael Drake



On 09/02/18 14:56, Jim Nagel wrote:


In CSS, is it possible to specify a particular RiscOS font?


No, NetSurf only supports the generic font families.


In CSS, how would I define a button to look like a familiar RiscOS
action button?


Input type image is probably your best bet, but it won't match
desktop button style if users have customised the RISC OS button
rendering in any way.

--
Michael Drake  http://www.codethink.co.uk/



CSS for a RiscOS font and button

2018-02-09 Thread Jim Nagel
   === 1 ===
In CSS, is it possible to specify a particular RiscOS font?
For example, Oxford.Bold.Italic -- what would the CSS syntax be? 
Presumably those dots in the Ro filepath would change -- to what?

Viewers of the page in question will be mostly RiscOS users, but the 
font declaration should degrade gracefully for people who don't have 
that font or for anybody happening to view the page on other platforms 
where the font might be called Optima or just generic sans-serif.

I know it's general good practice to stick to "standard" fonts, but 
out of curio city, I'm wondering how to specify this partic font.

   === 2 ===
In CSS, how would I define a button to look like a familiar RiscOS 
action button?  I mean like the one at the bottom of a Save dialogue, 
with a yellow moat around a grey slab.

I want to use it for "Submit" at the bottom of an HTML form.  (I am 
adapting a page where a grey panel further up is actually a menu 
though it shows only the default option -- the appearance of the 
current Submit button close by is too similar.)

Thanks.

-- 
Jim Nagel www.archivemag.co.uk
|| See you at the show?   www.riscos-swshow.co.uk   Feb 24