Technical: Restore version debug glyph in PUA

Bug #640623 reported by Paul Sladen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Font Family
Fix Released
High
Malcolm Wooden

Bug Description

Currently the 0.69 can be identified in rendering screenshots as it is the only version without a version number glyph.

In order to tell 0.70 uniquely apart, in screenshots and regardless of metadata, this needs to be present.

It should be possible to build this using the superscript/subscript glyphs to build a composite so that it is very obvious what it is and can't be mistaken for normal prose: Eg, within a normal EM square it should be possible to have something like:

 v 0
 .70

it doesn't matter if these glyphs overlap each other---indeed this makes it easy to distinguish it as the version symbol and not something that a user can create (or fake) easily with text.

This should be (re-)generated by a script in a similar manner to the glyphs used for the CASE implementation (bug #676538) and once the codepoint entry and bounding-box are reinserted updating is trival.

Paul Sladen (sladen)
Changed in ubuntu-font-family:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Shiraaz Gabru (shiraaz)
milestone: none → 0.70
tags: added: uff-pua uff-regression
Revision history for this message
Shiraaz Gabru (shiraaz) wrote :

The test glyphs were a temporary measure, all the details required for displaying font weight and version are in the font name table. There are disadvantages of leaving the beta test/debug glyphs in the fonts. Unnecessary overhead, they need to be manually updated for each release.

Changed in ubuntu-font-family:
importance: High → Low
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 640623] Re: Restore debug glyphs (Weight and version) in PUA

We are going to be in perpetual beta, which means there will be at least
two versions in wide circulation: the "x.0" major public release, and
the "current beta". I'd suggest it's worth keeping the ability to
differentiate every release form every other, even as we go into a
public beta and release mode.

Mark

Revision history for this message
Paul Sladen (sladen) wrote : Re: Restore debug glyphs (Weight and version) in PUA

Keeping these in sync is going to be a time-consuming operation if done by manually, so I can quite understand the reluctance. I think the simplest solution might be to re-inject the desired glyphs on our side in a more pragmatic manner. The attached python script re-injects the nameID=5 version number into the 'uniEFFD' glyph slot; the same can be done for populating the font/weight. The grayscale grid has not been useful at all, so that should be dropped and hopefully replaced by a pixels-per-em readout similar to Deja Vu.

It's a proof-of-concept so It'll needs more work to cope with full-injection into a font that doesn't have the glyph slot already setup; the glyph and its name to be created, populated, given dimensions, and added coherently to the various other tables.

This is probably the simplest way to patch in any license changes as well; and have it as part of the .orig.tar.gz "upstream/package" build process.

Revision history for this message
Paul Sladen (sladen) wrote :
Revision history for this message
Paul Sladen (sladen) wrote :

Didn't have sufficient time to patch these back in, but can hopefully be done at a later stage.

Paul Sladen (sladen)
Changed in ubuntu-font-family:
milestone: 0.70 → later
assignee: Shiraaz Gabru (shiraaz) → nobody
Paul Sladen (sladen)
summary: - Restore debug glyphs (Weight and version) in PUA
+ Restore version debug glyph in PUA
Paul Sladen (sladen)
description: updated
Changed in ubuntu-font-family:
importance: Low → High
assignee: nobody → Malcolm Wooden (malcolm-daltonmaag)
milestone: later → 0.70
summary: - Restore version debug glyph in PUA
+ Technical: Restore version debug glyph in PUA
description: updated
Shiraaz Gabru (shiraaz)
Changed in ubuntu-font-family:
status: Confirmed → Fix Committed
Revision history for this message
Paul Sladen (sladen) wrote :

2010-12-14 (Paul Sladen) Ubuntu Font Family version 0.70

  Release notes 0.70:
  * (Design) Add Capitalised version of glyphs and kern. (Rg, It, Bd,
    BdIt) DM (LP: #676538, #677446)
  * (Design) Give acute and grave a slight upright move to more match
    the Hungarian double acute angle. (Rg, It, Bd, BdIt) (LP: #656647)
  * (Design) Shift Bold Italic accent glyphs to be consistent with the
    Italic. (BdIt only) DM (LP: #677449)
  * (Design) Check spacing and kerning of dcaron, lcaron and
    tcaron. (Rg, It, Bd, BdIt) (LP: #664722)
  * (Design) Add positive kerning to () {} [] to open out the
    combinations so they are less like a closed box. (Rg, It, Bd,
    BdIt) (LP: #671228)
  * (Design) Change design of acute.asc and check highest points (Bd
    and BdIt only) DM
  * (Production) Update <case> feature. DM (LP: #676538, #676539)
  * (Production) Remove Romanian locl feature. (Rg, It, Bd, BdIt)
    (LP: #635615)
  * (Production) Update Copyright information with new
    strings. "Copyright 2010 Canonical Ltd. Licensed under the Ubuntu
    Font Licence 1.0" Trademark string "Ubuntu and Canonical are
    registered trademarks of Canonical Ltd." (Rg, It, Bd, BdIt) DM
    (LP: #677450)
  * (Design) Check aligning of hyphen, math signs em, en, check braces
    and other brackets. 16/11 (LP: #676465)
  * (Production) Pixel per em indicator added at U+F000 (Rg, It, Bd,
    BdIt) (LP: #615787)
  * (Production) Version number indicator added at U+EFFD (Rg, It, Bd,
    BdIt) (LP: #640623)
  * (Production) fstype bit set to 0 - Editable (Rg, It, Bd, BdIt)
    (LP: #648406)

Changed in ubuntu-font-family:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.