summaryrefslogtreecommitdiff
path: root/tools/convbdf.c
AgeCommit message (Collapse)Author
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-04-30Remove the (part of the) check that is actually not needed since the ↵Alexander Levin
'properties' section is optional git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20831 a1c6a512-1295-4272-9138-f99709370657
2009-04-29Allow to specify DWIDTH at font level making DWIDTH at char level optional ↵Alexander Levin
(FS#10176 by Yoshihisa Uchida with minor modifications by me) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20828 a1c6a512-1295-4272-9138-f99709370657
2009-03-13Make error message more informative; increase the max size of rotatable glyphsAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20321 a1c6a512-1295-4272-9138-f99709370657
2009-03-12Provide information about how the font could be reduced without glyph clippingAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20307 a1c6a512-1295-4272-9138-f99709370657
2009-03-09Add a TODO mark -- code duplication is uglyAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20257 a1c6a512-1295-4272-9138-f99709370657
2009-03-08Introduced new options for convbdf that specify how the ascent/descent is ↵Alexander Levin
allowed to grow to avoid glyph clipping. The syntax is (for ascent, descent is similar): N[%][!]. E.g. -a3 allows ascent to become 3 pixels greater; -a3! forces ascent to become 3 px greater; -a20% allows ascent to grow 20% from what is specified in the font. By default, ascent/descent are not allowed to grow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20239 a1c6a512-1295-4272-9138-f99709370657
2009-03-07Unify printing of warnings/errors/info messagesAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20231 a1c6a512-1295-4272-9138-f99709370657
2009-03-06Only print clip warnings in verbose modeAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20222 a1c6a512-1295-4272-9138-f99709370657
2009-03-06Remove the check since it can fail if the chars to process were limited per ↵Alexander Levin
command line options. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20221 a1c6a512-1295-4272-9138-f99709370657
2009-03-06Revamp of the bitmap allocation for the fonts. Implements the idea from ↵Alexander Levin
FS#9907 (reallocate when maxwidth grows), but does it correctly. Also gets rid of the warning "DWIDTH spec > ..." which is irritating since the bounding box header of the font is not required to specify the MAX width. Also replaced TABs with spaces. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20219 a1c6a512-1295-4272-9138-f99709370657
2009-03-05Use plaint int here since it's also used for the other fieldsAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20211 a1c6a512-1295-4272-9138-f99709370657
2009-03-05Provide better stats (print the total number of glyphs as well)Alexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20210 a1c6a512-1295-4272-9138-f99709370657
2009-03-05Correct the char's bby and bbh if it's clippedAlexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20207 a1c6a512-1295-4272-9138-f99709370657
2009-03-04Clip the glyphs that wouldn't be correctly rendered by Rockbox thus avoiding ↵Alexander Levin
"noise" in glyphs. See also the attachment in FS#9931 for the list of the "offending" fonts. Further steps would be to decide how such fonts can be handled better. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20204 a1c6a512-1295-4272-9138-f99709370657
2008-12-24Fix one of the warnings which the ubuntu 8.10 servers are throwing.. Jonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19576 a1c6a512-1295-4272-9138-f99709370657
2008-04-10decrease the risk of an overflow due to typecase from unsigned to signedDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17065 a1c6a512-1295-4272-9138-f99709370657
2008-04-10and fix yet another picky warningDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17063 a1c6a512-1295-4272-9138-f99709370657
2008-04-10oopsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17062 a1c6a512-1295-4272-9138-f99709370657
2008-04-10cleanup code for picky compiler warning optionsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17060 a1c6a512-1295-4272-9138-f99709370657
2008-01-22Remove old debug statement when building fonts. Michael Giacomelli
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16143 a1c6a512-1295-4272-9138-f99709370657
2007-07-31FS#4955 - convbdf segfaults on very large fonts was simply due to a too smallDaniel Stenberg
destination buffer and no bounds check in the code. I've now enlarged the buffer and added a bounds check. Case closed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14093 a1c6a512-1295-4272-9138-f99709370657
2007-01-17Fix build warnings and errors.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12044 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
2006-04-18Fix bug with fonts containing missing glyphs before default glyph. Also, ↵Frank Dischner
allow fonts with trailing space on BITMAP line. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9719 a1c6a512-1295-4272-9138-f99709370657
2006-02-08Use 'int' for 32 bit variables in host tools to better run on 64bit archs.Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8626 a1c6a512-1295-4272-9138-f99709370657
2005-12-08Fix crash when converting the font 00-Starmap_r400-8.bdf.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8203 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-11-14Applied patch 1342470: Support fonts wider than 16 pixels in convbdf.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7874 a1c6a512-1295-4272-9138-f99709370657
2005-08-31Moved the declaration of the ofr variableLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7435 a1c6a512-1295-4272-9138-f99709370657
2005-08-23patch #1267220 by Frank - phaedrus961Daniel Stenberg
Currently convbdf will sort the bits order in the order of the encoding when creating the .c or .fnt file, but it doesn't update the offsets. This patch makes sure the offsets are updated along with the bits, so that fonts with out of order glyphs display properly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7392 a1c6a512-1295-4272-9138-f99709370657
2005-08-09convbdf: fixed a problem with 16 pixel wide characters. It now also refuses ↵Linus Nielsen Feltzing
to convert fonts with >16 pixel characters, since it can't yet convert them correctly (bitmap_t is 16 bits wide). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7295 a1c6a512-1295-4272-9138-f99709370657
2004-09-22Rearranged makefiles again to move platform-specific stuff from the MakefilesDaniel Stenberg
to either the configure script or to be ifdefed in the sources. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5103 a1c6a512-1295-4272-9138-f99709370657
2004-08-27Fixed new font format: necessity of offset table generation, output of fonts ↵Jens Arnold
without one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5018 a1c6a512-1295-4272-9138-f99709370657
2004-08-26removed the now broken out-of-sequence check for rotated operationJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5017 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-04-13Reverted my brainless const'ing of the font dataLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4492 a1c6a512-1295-4272-9138-f99709370657
2004-04-11Structures should not be const for simulator buildsHardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4486 a1c6a512-1295-4272-9138-f99709370657
2004-04-09Killed a few warningsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4483 a1c6a512-1295-4272-9138-f99709370657
2004-04-06Moved the system font from .data to .rodataLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4476 a1c6a512-1295-4272-9138-f99709370657
2003-01-24Remove use of rockbox-mode.el in local variables list.Mats Lidell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2002-09-20Fixed EOF problemBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2349 a1c6a512-1295-4272-9138-f99709370657
2002-09-20New full ISO-8859-1 system font.Björn Stenberg
Added font loading from dir browser. Changed default font location to /.rockbox/default.fnt. Code-policed font code. Removed old font tools. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2347 a1c6a512-1295-4272-9138-f99709370657
2002-09-18Greg's new C version of the font conversion tool.Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2329 a1c6a512-1295-4272-9138-f99709370657