Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How with 12-pt font in 11-pixel viewport to chop top not bottom?
« previous next »
  • Print
Pages: [1]

Author Topic: How with 12-pt font in 11-pixel viewport to chop top not bottom?  (Read 805 times)

Offline toehser

  • Member
  • *
  • Posts: 107
How with 12-pt font in 11-pixel viewport to chop top not bottom?
« on: December 09, 2013, 11:15:50 PM »
So, fonts tend to build the space between lines into the font... so the first row of the font is BLANK...  Often fine...

NOW, say, on a Clip+, when there are 2 pixel rows BETWEEN the yellow and blue areas...
The TOP row of text on the BLUE area... ALREADY has 2 rows of pixel space above it...
This would work fine if there was a legal good way to say "fill from the bottom" rather than "from the top".
A view option like Invert or R-To-L?
I don't really want to create a whole new font for the top line...

It already works fine, say, to put numbers at the bottom, since numbers don't have descenders...

If I have (for example...):

%Fl(3,12-Nimbus.fnt)
%V(0,15,128,11,3)
%s%ac%?it<%it|%fn>

I'm writing a 12 point font into an 11 point area...

I want to be able to control if it _cuts off the top_ or _cuts off the bottom_.

For a top-row of any screen, I want to usually cut off the top, the blank space meant to space out lines.
For a row with only numbers, I want to usually cut off the bottom, since they don't have descenders.

BETTER might be:

- Never put the inter-line spacing in the font glyphs!  Let us space the viewports by a pixel for that !!! Yes!
- Have a separate font for numbers!  Numbers don't EVER have the tails of gjpqy hanging down low...

But, for now, I'm just trying to find a way without making a bunch of my own fonts...

I assume that z-order or off-screen canvas isn't going to happen?

I could get the same approach by starting at -1 y position, or in the middle by being able to specify the z-order...
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  How with 12-pt font in 11-pixel viewport to chop top not bottom?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.