summaryrefslogtreecommitdiff
path: root/firmware/export/font.h
AgeCommit message (Collapse)Author
2010-03-03FS#10756 - Free unused init codeThomas Martitz
Introduce a new .init section for initialisation code, so that it can be copied to an area which is later overwritten before calling. The stack/bss can then overwrite that code, effectively freeing the code size that the initialisation routines need. Gives a few kB ram usage back. Only implemented for PP and as3525 so far. More targets could be added, as well as more functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25013 a1c6a512-1295-4272-9138-f99709370657
2010-03-03undo that last undo, make the font loader more forgiving to user errorsJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24994 a1c6a512-1295-4272-9138-f99709370657
2010-03-02revert r24989 ad r24990 which are cuasing segfaults... they were working ↵Jonathan Gordon
fine for me though :( (stupid font stuff is cursed!) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24993 a1c6a512-1295-4272-9138-f99709370657
2010-03-02* Make the user font count more saneJonathan Gordon
* font 2-9 in the skins will always be user fonts in the skins * init the skinfonts array so it doesnt think id 'x' is used already * make the parser work with FONT_UI untill the very end, even on remote fonts git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24989 a1c6a512-1295-4272-9138-f99709370657
2010-03-01Revert r24958. It didn't fix anything (in fact, the problem described didn't ↵Thomas Martitz
exist). Increase MAXFONTS by 1 to allow for remote screen targets to load fonts 2-9. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24983 a1c6a512-1295-4272-9138-f99709370657
2010-02-28redo r24943. the font mappings are not needed once the skin is finished ↵Jonathan Gordon
parsing so using the skin buffer there is a waste and overcomplicates things. Also that commit breaks plain %pb so make sure you dont use %pb inside a viewport with a font number > 1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24957 a1c6a512-1295-4272-9138-f99709370657
2010-02-14FS#10984 - multifont! 2 major additions:Jonathan Gordon
1) seperate UI font for the remote and main displays 2) allow individual skins to load additional fonts for use in the skin (Uo to 7 extra in this first version) see CustomWPS for info on how to load a font in the skins. Code should always use FONT_UI+screen_number to get the correct user font git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24644 a1c6a512-1295-4272-9138-f99709370657
2009-12-13Font improvements: Fix bug that caused some fonts to be rendered garbled on ↵Nils Wallménius
custom builds with MAX_FONT_SIZE > 64k (closes FS#10844). Simplify version check. Use void pointer and explicit casting for the offsets to make it clearer that they may be of different sizes, add a comment too. Use uint16_t in stead of short in some places for consistency. Replace magic number with meaningful define. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23969 a1c6a512-1295-4272-9138-f99709370657
2009-09-13Get rid of some of the code duplication from checkwps, it still duplicates a ↵Thomas Martitz
lot though. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22695 a1c6a512-1295-4272-9138-f99709370657
2009-01-29Get checkwps working againMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19880 a1c6a512-1295-4272-9138-f99709370657
2008-11-24Added support for configurable rockbox directory. FS#9567 by Alex Bennee.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19208 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-03-25Make checkwps compile again. Still more work is needed though, as checkwps ↵Dave Chapman
is compiled to emulate an iPod Color - this needs changing to allow the LCD (and remote LCD) dimensions/depth to be specified on the commandline - the new %V tags are validated against the LCD characteristics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16807 a1c6a512-1295-4272-9138-f99709370657
2007-09-14Tab policeNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14691 a1c6a512-1295-4272-9138-f99709370657
2007-06-30Change unsigned long to uint32_t and long to int32_t to fix a crash in Nils Wallménius
64 bit sims. Make a couple of private functions 'static'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13743 a1c6a512-1295-4272-9138-f99709370657
2007-03-05Use a larger font cache on the targets that can afford the (quite small) RAM ↵Linus Nielsen Feltzing
usage git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12620 a1c6a512-1295-4272-9138-f99709370657
2007-01-17sysfont.h is only needed by devices with bitmap displays.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12042 a1c6a512-1295-4272-9138-f99709370657
2007-01-17Make the build system create a sysfont.h which includes font information for ↵Barry Wardell
the system font. Available #defines are: SYSFONT_NAME, SYSFONT_FACENAME, SYSFONT_WIDTH, SYSFONT_HEIGHT, SYSFONT_SIZE, SYSFONT_ASCENT, SYSFONT_DESCENT, SYSFONT_FIRST_CHAR, SYSFONT_LAST_CHAR, SYSFONT_DEFAULT_CHAR, SYSFONT_PROPORTIONAL, SYSFONT_COPYRIGHT, SYSFONT_BITS_SIZE. Also fix a small bug in the iPod bootloader printf() code and use printf() for PortalPlayer bootloaders too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12041 a1c6a512-1295-4272-9138-f99709370657
2005-12-06waiting is over: initial unicode commitMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
2005-08-03Increased maximum file size for models with LCD height larger than 64 toDaniel Stenberg
10000 bytes. Also adjusted the buildzip script to dynamically figure out the maximum buffer size for the particular build that the zip is made for. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7280 a1c6a512-1295-4272-9138-f99709370657
2005-04-19moved lcd_getstringsize into font.cChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6321 a1c6a512-1295-4272-9138-f99709370657
2004-08-27font format documentation updated, obsolete definitions removedJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5020 a1c6a512-1295-4272-9138-f99709370657
2004-08-27By reducing the font buffer to 4000 bytes from 9000, we get 5000 fresh bytesDaniel Stenberg
to buffer mp3 with! Only 3 out of 44 fonts that fit within 9000 are bigger than 4000, leaving us with 41 fonts that fit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5019 a1c6a512-1295-4272-9138-f99709370657
2004-08-26Fixed pointer types & struct fontJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5016 a1c6a512-1295-4272-9138-f99709370657
2004-08-26New font format (already rotated) saves code, space and time. On the ↵Jörg Hohensohn
downside this new format is incompatible, so get the new fonts, too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5015 a1c6a512-1295-4272-9138-f99709370657
2004-08-16Const policed pointer arguments to functions, part 1Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657
2003-06-29Added multiple inclusion protectionBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3767 a1c6a512-1295-4272-9138-f99709370657
2003-02-07Include File Cleanup And Move-Around Party 2003.Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3213 a1c6a512-1295-4272-9138-f99709370657