[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, 8 months
[Netsurf-develop] Two tips for uploading files to the bug tracker
by Simon Smith
If trying to post a log file to the bug tracker:
1) Don't forget to zip the file because I believe the bug tracker rejects
over-large files. Netsurf log files often compress by 30:1 or better so
remembering to zip them can save a lot of time, esp. if you're on dialup.
2) Try dragging and dropping the file-to-be-uploaded from a RAM disc rather
than from your hard disk.
In my case I think I have problems posting from my hard disk because it has
a hard space in its name. The RAM disk works reliably because its name has no
top-bit-set characters.
Hope others may find these tips handy.
NS-Devs: Good luck with the finals, guys
Simon Smith
--
When we went outside, what did we viddy but a silly Devotchka lying in
the gutter. One thing I could never stand is to see a silly Devotchka,
going blerp, blerp, about how she would thcweam and thcweam and thcweam
until she was thick . . . - A Clockwork William
17 years, 3 months
Re: [Netsurf-develop] Intermittent problem loading NetSurf
by Keith Hopper
In article <4e28808d00lists-nospam(a)vigay.com>,
Paul Vigay <lists-nospam(a)vigay.com> wrote:
> I've noticed recently that about 1 in every 5 times of loading NetSurf, I
> get the error message "UnixLib detected recursion of signal SIGSEGV.
> Exiting." when I double-click on NetSurf - before it appears on the icon
> bar or anything.
[snip]
> Has anyone else experienced this?
> Using NetSurf 13 May 2006 10:15 and ROS 5.11 on an Iyonix Aria Cube,
> although it's also done it for the past few versions of NS too.
Yes, same set up, but only once!
Keith
--
Sky Development
17 years, 3 months
[Netsurf-develop] Autoscrolling in global history/hotlist
by Christopher Bazley
Hello,
I have just noticed an anomaly with autoscrolling whilst dragging a
URL within the hotlist or global history. Scrolling upwards does not
attain the same speed as downwards until the pointer is moved over the
tool bar at the top of the window. This seems to be at odds with the
extent of the vertical scrollbar and scrollable area, both of which
stop short of the top of the window.
Actually, even if the scrollbar reached the top of the window I still
think that the autoscroll borders should reflect the visible work area
(i.e. excluding any internal toolbars).
I will enter this issue on the bug tracker also.
--
Chris Bazley
17 years, 3 months
[Netsurf-develop] Substitution of '_20' for '%20' in download file names
by Christopher Bazley
Hello,
I'm not sure if this is a bug that should be entered on the bug
tracker, or a feature request.
When downloading files with encoded characters in their names (such as
those at http://www.stairwaytohell.com/heartcore), the local file name
proposed by Netsurf substitutes underscores for percent symbols in the
original name. Presumably this is because '%' is not valid in a RISC
OS file name. As a result I now have lots of files on my hard disc
named things like 'heartcore_20-_20the_20game_20-_20128kbps_20-_2004'
(which should be 'heartcore - the game - 128kbps - 04).
When proposing a local file name, please could NetSurf decode
characters specified as hexadecimal, where these are printable? I
assume that the subsequent translation of space (ASCII &20) into a
hard-space (character &A0) is a separate issue.
Cheers,
--
Chris Bazley
17 years, 3 months
[Netsurf-develop] "Drop file here" redraw fails
by Stefan Bellon
Not sure whether this is a known problem or not, but when dragging a
file onto a "Drop file here" item, there's no redraw taking place
showing the filename. When I move some other window over the item, so
that a redraw is forced, then the filename appears.
--
Stefan Bellon
17 years, 3 months
[Netsurf-develop] A bug, and a problem with the bug tracker.
by Dr Peter Young
Yes, I know I should report this to the bug tracker, but it won't let
me in (is it just me, or is this site notably unfriendly?). When I
enter my username and password, it just returns me to the login screen
without comment. The site must know about me, as it let me change my
password, but still without being able to get into the tracker to
report this.
The bug: If I add a site to the hotlist and then sort this site into
one of the directories in the hotlist, this sorting doesn't get saved
when NetSurf is quitted and re-loaded. The help file says "The hotlist
file is saved when you quit NetSurf.", but it seems that this is only
partly true.
With best wishes,
Peter.
(getting a bit grumpy).
--
Peter \ / \ Prestbury, Cheltenham, Glos. GL52
Anne \ / __ __ \ England.
and / / \ | | |\ | / _ \ http://pnyoung.orpheusweb.co.uk
family / \__/ \_/ | \| \__/ \______________ pnyoung(a)ormail.co.uk.
17 years, 3 months
[Netsurf-develop] re:[netsurf-develop]netsurf security
by M.I. Abdullah
Thanks John-Mark.
Yes I am using webmail.uio.no but I cannot logon due to security problem.
Does SSL automatically run (does not seem to?)if not how can I run it.
Many thanks.
Sorry I cannot include the original message as Oregano2, which I am using
falls over when I click on reply!!!!
--
Mohamed Abdullah
Dept. Biology, University of Oslo
PB 1066 Blindern,
0316 Oslo, Norway
Tel: +47 22 85 45 47
17 years, 4 months