Commit Graph

36 Commits

Author SHA1 Message Date
Chris Young
fea40a0a78 Restrict all menu icon code to OS4+gadtools53.7
This avoids requests for TBimages: on OS3
2015-08-17 18:15:29 +01:00
Chris Young
c38670ade8 Allow a fallback font for characters above 0xFFFF to be specified. There is no scanning of this range as most fonts don't have any characters here. Symbola is selected if it is installed. 2015-07-06 19:29:16 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Chris Young
70dd445d5b Remove dead code 2015-01-31 13:52:03 +00:00
Chris Young
2377e93898 fix a crash in the font scanner 2015-01-30 20:44:53 +00:00
Chris Young
7a72ff3161 Fixup font scanning some more, remove .font suffix 2015-01-30 19:37:38 +00:00
Chris Young
8373fe14cb Enable the font scanner for OS3 2015-01-30 18:57:04 +00:00
Chris Young
3a5907c1c4 Move everything else over to using the class pointers.
Exception: popupmenu.class is still using old _GetClass functions.
2015-01-26 00:05:01 +00:00
Chris Young
1bee34e164 Stub out font.c and font_scan.c for OS3 for now
A more involved fix required for later.
2015-01-12 22:40:46 +00:00
Chris Young
0966b8097c Allocate screen title when first needed and keep it private to amiga/gui.c 2014-11-16 16:40:41 +00:00
Chris Young
1d07bd0657 Fix warnings 2014-11-09 19:34:57 +00:00
Vincent Sanders
f287379a7c Fix several doxygen issues 2014-11-08 11:38:20 +00:00
Vincent Sanders
0b64df140c Update amiga frontend for split operation table header changes 2014-10-16 22:33:44 +01:00
Chris Young
06ad319c24 Filter all control chars from width kerning and fix some const warnings. 2014-05-19 18:39:54 +01:00
Chris Young
5bb5e2667d Change the scope of some variables picked up by cppcheck, minor reformatting 2014-04-05 23:34:51 +01:00
Chris Young
ade86e496e Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary. 2013-10-12 13:11:13 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Chris Young
d9b8809908 Fix memory leak and make a point of ignoring UTF-16 surrogates 2013-04-14 16:03:46 +01:00
Chris Young
22c7c1259b We are opening on a public screen, not a custom screen (even our own screen is a public screen) 2013-03-20 08:22:03 +00:00
Chris Young
e25cb44814 Remove font_unicode_list - font_unicode is a list now. 2012-11-08 23:56:42 +00:00
Chris Young
55c6841eca Merge branch 'master' of git://git.netsurf-browser.org/netsurf 2012-11-07 22:52:03 +00:00
Chris Young
f37a8ad58b Remove extraneous debug 2012-11-07 20:18:33 +00:00
Chris Young
ecd8364fe1 Fix font_scan crash (credit: Gazelle) 2012-11-07 17:44:38 +00:00
Chris Young
1e4b78af56 noisy debug 2012-11-06 20:43:00 +00:00
Chris Young
f0a568b861 remove standalone code which no longer compiles 2012-10-16 22:12:12 +01:00
Chris Young
ca555e7fd1 remove extraneous linefeeds 2012-10-16 22:10:49 +01:00
Chris Young
b7c9b57064 attempt to avoid a crash during font scanning 2012-10-14 23:01:13 +01:00
Vincent Sanders
5800789df2 trivial docuemntation cleanups to address some of the huge number of docuemntation warnings 2012-10-08 14:52:24 +01:00
Chris Young
560d5d2035 Allow a comma-separated list of fonts to be specified in font_unicode_list
to provide more preferred fonts.  eg. if a user has dedicated Japanese
and Korean fonts available they might want a config like:
font_unicode:Japanese
font_unicode_list:Korean,Code2000
This will scan Japanese and Korean fonts first, then fill in any blanks
with Code2000 (followed by alphabetically all other fonts installed)

svn path=/trunk/netsurf/; revision=13917
2012-05-09 22:23:10 +00:00
Chris Young
727cae9461 Progress display for font scanning
svn path=/trunk/netsurf/; revision=13909
2012-05-07 14:18:22 +00:00
Chris Young
0161b2a33e Rescan fonts if preferred fallback font is changed in the GUI
svn path=/trunk/netsurf/; revision=13908
2012-05-06 17:55:35 +00:00
Chris Young
7003f6932e Use font_unicode option as preferred (first scanned) font. Ideally need to
expand this so multiple fonts can be specified.  Allow disabling of
scanning other fonts. Add stubs for a scanning progress GUI.

svn path=/trunk/netsurf/; revision=13907
2012-05-05 19:09:42 +00:00
Chris Young
d5608581b9 Integrate Unicode font scanner into NetSurf.
NetSurf will now use any available font when trying to print
characters that are missing from the current font.
TODO: Preferred font list.

svn path=/trunk/netsurf/; revision=13905
2012-05-05 15:58:17 +00:00
Chris Young
59f8e00434 Add loading, parse OS fonts into a list (which can optionally already
contain fonts) before scanning

svn path=/trunk/netsurf/; revision=13904
2012-05-05 14:46:18 +00:00
Chris Young
e635d907aa Tidy-up, split into sensible functions for NetSurf integration,
documentation. Cache file loading needs adding and ami_font_scan_fonts
needs to add to a list of fonts, and then send those to the scanner so we
can put some preferred fonts on the top of the list and avoid duplication.

svn path=/trunk/netsurf/; revision=13903
2012-05-05 11:09:19 +00:00
Chris Young
febea7ec4b Font glyph scanner. Currently works as a standalone program which outputs a
file for NetSurf to ignore.

svn path=/trunk/netsurf/; revision=13902
2012-05-04 19:30:30 +00:00