|
|
Font System ProposalOverviewThe current Rockbox font subsystem has limited the possibilities for expanding the UI. It is almost completely uncommented and was apparently written by a Chinese contributor that is no longer participating in development. Expanding the subsystem to support multiple fonts has been shown to be possible only in a hackish and inefficient way. In order to allow further development in this area, it is my belief that a new subsystem is required. Porting Freetype2 to Rockbox is a way to leverage existing, stable font handling code while introducing the possiblity of new features with only a modest increase in code size. Freetype2 core (not including vector font rendering) is in part designed for embedded use and is small and highly efficient. It also includes a small bitmap glyph cache engine that appears to be perfectly suited for Rockbox. I've done some very preliminary scanning through the freetype2 code (including some initial effort at integrating it into the Rockbox source) and it seems to be a good fit. After a very rough integration of the core, BDF and scache modules, the total lines of code added is 7,045 with an additional 4,897 SLOC in header files. It is possible that this can be cut down further (particularly the headers).Advantages
Disadvantages
Tasks/Problems
DiscussionPlease include criticisms and ideas for improving the Rockbox font situation.r2 - 02 Apr 2021 - 20:46:06 - UnknownUser
Copyright © by the contributing authors.
|