summaryrefslogtreecommitdiff
path: root/tools/convbdf.c (follow)
Commit message (Collapse)AuthorAge
* Fix warnings. convbdf needed to be updated for the changed font struct ↵Thomas Martitz2014-01-26
| | | | | | because it generates sysfont.c. Change-Id: Id5aea6b6c73438242a80ae6849ee5e29ab8659dc
* FS#12293 Global default glyph setting in System > Limits > Glyphs To Cache. ↵Fred Bauer2011-11-19
| | | | | | 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
* Split long fmt string which caused a yellowFred Bauer2011-10-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30770 a1c6a512-1295-4272-9138-f99709370657
* Faster cached font loading. FS#12333Fred Bauer2011-10-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30769 a1c6a512-1295-4272-9138-f99709370657
* Update convbdf.c for previous changeFred Bauer2011-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30764 a1c6a512-1295-4272-9138-f99709370657
* Remove a few whitespaces to get under the magical string length of 509 (i.e. ↵Thomas Martitz2011-03-05
| | | | | | fix yellow) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29524 a1c6a512-1295-4272-9138-f99709370657
* Anti-Aliased Fonts support.Thomas Martitz2011-03-05
| | | | | | | | | | | | | 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
* More explanation to the convbdf optionsAlexander Levin2010-07-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27510 a1c6a512-1295-4272-9138-f99709370657
* Improve spacing in comments in convbdf; rename a local variable which can be ↵Alexander Levin2010-05-17
| | | | | | confused with 1 (one) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26117 a1c6a512-1295-4272-9138-f99709370657
* Fix convbdf: now .c and .fnt files can be generated in one run againAlexander Levin2010-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26115 a1c6a512-1295-4272-9138-f99709370657
* Improve spacing in commentsAlexander Levin2010-05-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26091 a1c6a512-1295-4272-9138-f99709370657
* Generating .c file make internal data structures unusable so that .fnt file ↵Alexander Levin2010-05-13
| | | | | | 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
* FS#10984 - multifont! 2 major additions:Jonathan Gordon2010-02-14
| | | | | | | | | | 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
* Remove the (part of the) check that is actually not needed since the ↵Alexander Levin2009-04-30
| | | | | | 'properties' section is optional git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20831 a1c6a512-1295-4272-9138-f99709370657
* Allow to specify DWIDTH at font level making DWIDTH at char level optional ↵Alexander Levin2009-04-29
| | | | | | (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
* Make error message more informative; increase the max size of rotatable glyphsAlexander Levin2009-03-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20321 a1c6a512-1295-4272-9138-f99709370657
* Provide information about how the font could be reduced without glyph clippingAlexander Levin2009-03-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20307 a1c6a512-1295-4272-9138-f99709370657
* Add a TODO mark -- code duplication is uglyAlexander Levin2009-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20257 a1c6a512-1295-4272-9138-f99709370657
* Introduced new options for convbdf that specify how the ascent/descent is ↵Alexander Levin2009-03-08
| | | | | | | | | | 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
* Unify printing of warnings/errors/info messagesAlexander Levin2009-03-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20231 a1c6a512-1295-4272-9138-f99709370657
* Only print clip warnings in verbose modeAlexander Levin2009-03-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20222 a1c6a512-1295-4272-9138-f99709370657
* Remove the check since it can fail if the chars to process were limited per ↵Alexander Levin2009-03-06
| | | | | | command line options. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20221 a1c6a512-1295-4272-9138-f99709370657
* Revamp of the bitmap allocation for the fonts. Implements the idea from ↵Alexander Levin2009-03-06
| | | | | | | | | 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
* Use plaint int here since it's also used for the other fieldsAlexander Levin2009-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20211 a1c6a512-1295-4272-9138-f99709370657
* Provide better stats (print the total number of glyphs as well)Alexander Levin2009-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20210 a1c6a512-1295-4272-9138-f99709370657
* Correct the char's bby and bbh if it's clippedAlexander Levin2009-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20207 a1c6a512-1295-4272-9138-f99709370657
* Clip the glyphs that wouldn't be correctly rendered by Rockbox thus avoiding ↵Alexander Levin2009-03-04
| | | | | | | | | "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
* Fix one of the warnings which the ubuntu 8.10 servers are throwing.. Jonathan Gordon2008-12-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19576 a1c6a512-1295-4272-9138-f99709370657
* decrease the risk of an overflow due to typecase from unsigned to signedDaniel Stenberg2008-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17065 a1c6a512-1295-4272-9138-f99709370657
* and fix yet another picky warningDaniel Stenberg2008-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17063 a1c6a512-1295-4272-9138-f99709370657
* oopsDaniel Stenberg2008-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17062 a1c6a512-1295-4272-9138-f99709370657
* cleanup code for picky compiler warning optionsDaniel Stenberg2008-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17060 a1c6a512-1295-4272-9138-f99709370657
* Remove old debug statement when building fonts. Michael Giacomelli2008-01-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16143 a1c6a512-1295-4272-9138-f99709370657
* FS#4955 - convbdf segfaults on very large fonts was simply due to a too smallDaniel Stenberg2007-07-31
| | | | | | | | 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
* Fix build warnings and errors.Barry Wardell2007-01-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12044 a1c6a512-1295-4272-9138-f99709370657
* Make the build system create a sysfont.h which includes font information for ↵Barry Wardell2007-01-17
| | | | | | | | | 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
* Fix bug with fonts containing missing glyphs before default glyph. Also, ↵Frank Dischner2006-04-18
| | | | | | allow fonts with trailing space on BITMAP line. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9719 a1c6a512-1295-4272-9138-f99709370657
* Use 'int' for 32 bit variables in host tools to better run on 64bit archs.Daniel Stenberg2006-02-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8626 a1c6a512-1295-4272-9138-f99709370657
* Fix crash when converting the font 00-Starmap_r400-8.bdf.Magnus Holmgren2005-12-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8203 a1c6a512-1295-4272-9138-f99709370657
* waiting is over: initial unicode commitMarcoen Hirschberg2005-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
* Applied patch 1342470: Support fonts wider than 16 pixels in convbdf.Magnus Holmgren2005-11-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7874 a1c6a512-1295-4272-9138-f99709370657
* Moved the declaration of the ofr variableLinus Nielsen Feltzing2005-08-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7435 a1c6a512-1295-4272-9138-f99709370657
* patch #1267220 by Frank - phaedrus961Daniel Stenberg2005-08-23
| | | | | | | | | | 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
* convbdf: fixed a problem with 16 pixel wide characters. It now also refuses ↵Linus Nielsen Feltzing2005-08-09
| | | | | | 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
* Rearranged makefiles again to move platform-specific stuff from the MakefilesDaniel Stenberg2004-09-22
| | | | | | | 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
* Fixed new font format: necessity of offset table generation, output of fonts ↵Jens Arnold2004-08-27
| | | | | | without one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5018 a1c6a512-1295-4272-9138-f99709370657
* removed the now broken out-of-sequence check for rotated operationJörg Hohensohn2004-08-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5017 a1c6a512-1295-4272-9138-f99709370657
* New font format (already rotated) saves code, space and time. On the ↵Jörg Hohensohn2004-08-26
| | | | | | 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
* Reverted my brainless const'ing of the font dataLinus Nielsen Feltzing2004-04-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4492 a1c6a512-1295-4272-9138-f99709370657
* Structures should not be const for simulator buildsHardeep Sidhu2004-04-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4486 a1c6a512-1295-4272-9138-f99709370657