[Netsurf-develop] Font / Unicode overview
by James Bursa
In an attempt to answer the questions that have appeared recently,
I've written a guide to fonts and Unicode support in NetSurf.
James
______________________________________________________________________
Fonts in NetSurf
NetSurf has support for displaying pages containing Unicode characters
that aren't normally available on RISC OS, for example accented Latin
letters, Greek, Cyrillic, Japanese, and various symbols.
The font choices let you pick a font for each of the five standard
families available to web authors (in CSS). The choices specify the
preferred font to use. If a character is not available in the chosen
font, but it's present in some other font that you have installed,
then NetSurf will automatically use it. There's no need to change the
font choices to view pages with characters that are not available in
the chosen font.
Note that you can only choose a font family. NetSurf will
automatically use weights from the family for bold and slanted text,
if available.
Installing more fonts
The fonts that come with RISC OS cover Latin (Homerton, Trinity,
Corpus), Greek (Sidney), and various symbols (Selwyn, Sidney). (On
RISC OS 3-4, only the "Latin 1" characters from the standard fonts,
which cover Western European languages, can be used by NetSurf).
If you want to display pages with other characters correctly, you'll
need to install fonts containing them. When a character is not present
in any available font, the Unicode character code will be displayed.¹
Any font supplied with a correctly designed "Encoding" file should
work. In practice, native fonts covering anything other than Latin 1
are rare. The solution is to convert TrueType fonts using TTF2f (this
currently produces fonts suitable for RISC OS 5 only).
After installing new fonts, NetSurf will need restarting so that it
detects them.
Problems and unimplemented features
* The default font is always the sans-serif one.
* Printing on RISC OS 5 doesn't work, due to lack of support in the
Font Manager and printer drivers. Printing to Postscript printers on
RISC OS 3-4 is not correctly implemented in NetSurf.
* Substituted characters are taken from the first font that contains
them, even if a character which matches the weight or slant better
is available.
* Only two weights (regular and bold) are supported, even if a family
contains other weights. The algorithm that finds weights needs
improving, for example using the heuristics given in CSS 2.1 15.6.
* Drawfile export is broken.
* Right-to-left text (Hebrew, Arabic) is not implemented.
____________________
¹ If you see the codes 0091, 0092, 0096, or others starting 009, that
indicates that the page is not specifying the character set that it
is using correctly. Installing fonts won't help. We haven't yet
decided what the best way to work around this problem is.
16 years, 5 months
[Netsurf-develop] Re: NetSurf with RO4.02
by Gordon F McLaren
> Date: Fri, 26 Aug 2005 10:15:40 +0100
>
> In message Gordon F McLaren <info(a)wardlaw.demon.co.uk>
> wrote:
>
> >
> > Hi all,
> >
> > Just been upgrading a RO4.02 machine with the latest Netsurf 22.08.05
> > and found that it will not fetch any pages, giving the error:-
> > Sorry, Netsurf is unable to display this page
> >
> > Checking back, the last NS that fetches ok is 11.07.2005 but from
> > 13.07.2005 onwards they all fail to fetch/display a page.
> >
> > I've also checked on a second RO4.02 machine and that gives the same
> > problem ;-(
> >
> > RO4.39 is of course ok!
> >
> > Any ideas? I can produce the stderr pages if required!
> >
> > Regards,
> > Gordon McLaren
>
> I'm getting a similar problem but only when loading Netsurf by
> clicking on a link. Click on reload and it then works for me on RiscOS
> 4.02
> --
> Dave Lawson
> DAVIDsLAWSON(a)blueyonder.co.uk
Ok, after much twiddling (i.e. trial and error) I've found the problem
on the two RO4.02 machines.
I had the Host Names Primary and Secondary name server IPs reversed,
such that Netsurf was trying to connect to itself rather than to the
router!
Swapping them round has cured the problem ;-)
The RO4.39 machines had been set up correctly, so worked ok!
For interests sake it would be nice to know why previous versions of NS
worked up to 11.07.2005 with the reversal in place?
Regards,
Gordon McLaren
--
Wardlaw Surveys - Acorn Centre of Technology, Iiyama Dealer
- Authorised Installer for RISC OS 4
Wardlaw House, Kirkhill, Inverness. IV5 7NB. Scotland. UK.
Tel/FAX +44 (0)1463 831214 http://www.wardlaw.demon.co.uk
e-mail: info(a)wardlaw.demon.co.uk
17 years, 9 months
[Netsurf-develop] Netsurf with RO4.02
by Gordon F McLaren
Hi all,
Just been upgrading a RO4.02 machine with the latest Netsurf 22.08.05
and found that it will not fetch any pages, giving the error:-
Sorry, Netsurf is unable to display this page
Checking back, the last NS that fetches ok is 11.07.2005 but from
13.07.2005 onwards they all fail to fetch/display a page.
I've also checked on a second RO4.02 machine and that gives the same
problem ;-(
RO4.39 is of course ok!
Any ideas? I can produce the stderr pages if required!
Regards,
Gordon McLaren
--
Wardlaw Surveys - Acorn Centre of Technology, Iiyama Dealer
- Authorised Installer for RISC OS 4
Wardlaw House, Kirkhill, Inverness. IV5 7NB. Scotland. UK.
Tel/FAX +44 (0)1463 831214 http://www.wardlaw.demon.co.uk
e-mail: info(a)wardlaw.demon.co.uk
17 years, 9 months
[Netsurf-develop] Potential glitch when saving FAQs from GameFAQs.com
by Graham Thurlwell
First off, congratulations for the progress made so far. Netsurf
continues to be my first-choice browser on the family's Omega.
I've noticed an oddity with Netsurf when saving FAQs from GameFAQs.com
(http://www.gamefaqs.com). Under the current submission guidelines for
the site, all text FAQs are plain ASCII files. Said guidelines can be read at
http://www.gamefaqs.com/features/help/entry.html?cat=28 if you're
interested in them.
Having loaded an FAQ from that site, selecting Page->Save gives me a
save dialogue as you'd expect, but the resulting file is always
filetyped as HTML. While it is easy enough to change this in Filer, it
would be more convenient if there was some sort of option to specify
that I want to save the file as 'Text' rather than 'HTML'.
While I'm on, I note that on all of the files I saved from the site,
the full filename was retained - minus the extension. I suggest that a
'Retain PC filetype extension' option may be in order since not all
downloads intended for transfer from a RISC OS machine to a PC have an
obvious filetype.
--
Graham Thurlwell.
Jades' First Encounters Site.
http://www.jades.org/ffe.htm
The best Frontier: First Encounters site on the Web.
17 years, 9 months
[Netsurf-develop] Re: NetSurf with PayPal
by charles
In message <20050823032226.D248C13969(a)sc8-sf-spam2.sourceforge.net>
netsurf-develop-request(a)lists.sourceforge.net wrote:
> 1. Netsurf with PayPal (Bryn Evans)
> From: Bryn Evans <netsurf(a)bryork.freeuk.com>
> Date: Mon, 22 Aug 2005 14:43:36 +0100
> Subject: [Netsurf-develop] Netsurf with PayPal
>
> Does NS work with PayPal, or was a failure to complete a transaction
> just ME ?
Failed to PayPal complete here. I suspect a PayPal problem though as
it was seeking a direct debit to a bank although a current credit card
is registered with them and has been used.
On topic the form as seen with Netsurf kept opening a new frame with
just the dragged-and-dropped text from the invaluable !Insert;
unlike some browsers IIRC I could go back to the previous page, and
all was as expected.
--
Charles
tel 020 8949 0708 / mob 079 5620 0176/ fax 087 1243 9075
17 years, 9 months
[Netsurf-develop] Radio Times site
by Alan Lewer
The Radio Times site sometimes displays errors in the programme
details - eg shows
Angry Earth Five (8:00pm - 9:00pm)', FGCOLOR, #ff9922;"
onmouseout="return nd():">Angry Earth
amongst todays programmes.
Hardly life threatening but thought you would like to know!!
This is with test build 21 Aug on an Iyonix 5.09
Alan
ps thanks to the developers for the continuing work!
--
Alan Lewer
N50:50 W1:08 Hampshire, England
17 years, 9 months
[Netsurf-develop] Size of a request header field exceeds server limit
by Stefan Bellon
Since yesterday I cannot visit Drobe anymore with NetSurf (other
browsers are still ok). When trying to visit Drobe with NetSurf I get
the following error message:
400 Bad Request
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie: ODQuMTU2LjIxMi45NA=fHw%3D; ODQuMTU2LjE5OC4xNjQ=fHw%3D;
ODQuMTU2LjIwMC40NA=fHw%3D; ODQuMTU2LjIzMy45Mw=fHw%3D;
[... snipped almost 150 similar lines ...]
ODAuMTQ1LjE4NS4xNjY=fHw%3D; ODAuMTQ1LjE2NC45Mg===fHw%3D;
MjE3LjkzLjE4My41NQ===fHw%3D; ODAuMTQ1LjE3NS4yOA===fHw%3D;
PHPSESSID=ab8365438d7ca
It looks like something with the Cookies goes wrong as NetSurf sends a
_very_ large list.
--
Stefan Bellon
17 years, 9 months