summaryrefslogtreecommitdiffstats
path: root/tools/convbdf.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-24[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.Solomon Peachy1-5/+1
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
2014-01-26Fix warnings. convbdf needed to be updated for the changed font struct ↵Thomas Martitz1-0/+3
because it generates sysfont.c. Change-Id: Id5aea6b6c73438242a80ae6849ee5e29ab8659dc
2011-11-19FS#12293 Global default glyph setting in System > Limits > Glyphs To Cache. ↵Fred Bauer1-0/+1
Defaults to 250. This saves a lot of RAM while still allowing non-English users to have adequate glyph coverage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31031 a1c6a512-1295-4272-9138-f99709370657
2011-10-17Split long fmt string which caused a yellowFred Bauer1-11/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30770 a1c6a512-1295-4272-9138-f99709370657
2011-10-17Faster cached font loading. FS#12333Fred Bauer1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30769 a1c6a512-1295-4272-9138-f99709370657
2011-10-16Update convbdf.c for previous changeFred Bauer1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30764 a1c6a512-1295-4272-9138-f99709370657
2011-03-05Remove a few whitespaces to get under the magical string length of 509 (i.e. ↵Thomas Martitz1-10/+10
fix yellow) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29524 a1c6a512-1295-4272-9138-f99709370657
2011-03-05Anti-Aliased Fonts support.Thomas Martitz1-5/+10
This enables Rockbox to render anti-aliased fonts using an alpha blending method. The input font bitmaps are 4bit, i.e. 4x larger, but the metadata size stays the same. A tool, convttf, for converting ttf fonts directly to the Rockbox fnt format is provided. It has a useful help output, but the parameter that works best is -c1 or -c2 (2 for larger font sizes). Flyspray: FS#8961 Author: Initial work by Jonas Hurrelmann, further work by Fred Bauer, Andrew Mahone, Teruaki Kawashima and myself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29523 a1c6a512-1295-4272-9138-f99709370657
2010-07-21More explanation to the convbdf optionsAlexander Levin1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27510 a1c6a512-1295-4272-9138-f99709370657
2010-05-17Improve spacing in comments in convbdf; rename a local variable which can be ↵Alexander Levin1-37/+37
confused with 1 (one) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26117 a1c6a512-1295-4272-9138-f99709370657
2010-05-17Fix convbdf: now .c and .fnt files can be generated in one run againAlexander Levin1-20/+18
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26115 a1c6a512-1295-4272-9138-f99709370657
2010-05-16Improve spacing in commentsAlexander Levin1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26091 a1c6a512-1295-4272-9138-f99709370657
2010-05-13Generating .c file make internal data structures unusable so that .fnt file ↵Alexander Levin1-0/+6
can not be produced after that. Make sure that both options are not used at the same time. Better fix would be to adjust the function that generates .c file, but it would require more time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26001 a1c6a512-1295-4272-9138-f99709370657
2010-02-14FS#10984 - multifont! 2 major additions:Jonathan Gordon1-1/+10
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 Levin1-1/+1
'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 Levin1-0/+26
(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 Levin1-20/+48
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 Levin1-9/+24
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 Levin1-0/+6
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 Levin1-57/+287
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 Levin1-61/+89
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20231 a1c6a512-1295-4272-9138-f99709370657
2009-03-06Only print clip warnings in verbose modeAlexander Levin1-13/+36
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 Levin1-4/+0
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 Levin1-127/+131
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 Levin1-3/+3
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 Levin1-7/+9
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 Levin1-2/+12
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 Levin1-1/+56
"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 Gordon1-1/+1
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 Stenberg1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17065 a1c6a512-1295-4272-9138-f99709370657
2008-04-10and fix yet another picky warningDaniel Stenberg1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17063 a1c6a512-1295-4272-9138-f99709370657
2008-04-10oopsDaniel Stenberg1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17062 a1c6a512-1295-4272-9138-f99709370657
2008-04-10cleanup code for picky compiler warning optionsDaniel Stenberg1-14/+20
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 Giacomelli1-1/+0
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 Stenberg1-6/+15
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 Wardell1-4/+7
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 Wardell1-2/+68
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 Dischner1-37/+33
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 Stenberg1-20/+20
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 Holmgren1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8203 a1c6a512-1295-4272-9138-f99709370657
2005-12-06waiting is over: initial unicode commitMarcoen Hirschberg1-4/+24
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 Holmgren1-10/+7
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 Feltzing1-1/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7435 a1c6a512-1295-4272-9138-f99709370657
2005-08-23patch #1267220 by Frank - phaedrus961Daniel Stenberg1-5/+19
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 Feltzing1-2/+6
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 Stenberg1-1/+3
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 Arnold1-1/+12
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 Hohensohn1-5/+0
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 Hohensohn1-24/+151
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 Feltzing1-12/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4492 a1c6a512-1295-4272-9138-f99709370657