Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4469 (new)

Opened 13 years ago

Last modified 13 years ago

Model: font attributes — at Version 10

Reported by: jburel Owned by: dzmacdonald
Priority: minor Milestone: OMERO-Beta4.3
Component: Model Version: n.a.
Keywords: n.a. Cc: wmoore, dzmacdonald, ajpatterson, jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.1d
Sprint: 2011-04-07 (9)

Description (last modified by jburel)

Review the font attributes
We currently have

  • !fontStyle describing a mix of font style and font weight.
  • fontFamily describing font.


The terms we have in fontFamily are probably wrong, but the miss-use is very common. In general use on the web they can either be a specific font family name (e.g.Times, or Ariel) or a generic family name. Thought in HTML/CSS you can list several in the attribute and they will be used in order if available on the system. This is nice and flexible but leads for complex string you need to parse. From the CSS/HTML spec suitable generic values are:

  • serif
  • sans-serif
  • cursive
  • fantasy
  • monospace

I recommend we just need to have an enum of:

  • serif
  • sans-serif
  • monospace

The value we have for fontStyle is not correct either. We are using it as a combination for style and weight.

From the CSS/HTML spec suitable values for style are:

  • normal
  • italic
  • oblique

I had to check what the difference between italic and oblique was. Oblique is the normal letter shapes but slanted forward. Italic is also slanted forward but has different (normally more curved/flowing) letter shapes.

From the CSS/HTML spec suitable values for weight are:

  • normal
  • bold
  • bolder
  • lighter
  • or a numeric value from (100,200,300,400,500,600,700,800,900)

I recommend we just need to have an attribute called perhaps fontStyleAndWeight using an enum of:

  • normal
  • italic
  • bold
  • bolditalic

Decision

  • Merge fontStyle and fontWeight. Keep fontStyle. Update clients (#4469), schema and DB (see #4398)
  • fontFamily will use enumeration cf. values above.
  • Provide mapping for fontFamily (andrew)

Change History (10)

comment:1 Changed 13 years ago by jburel

  • Remaining Time set to 0.5

comment:2 Changed 13 years ago by ajpatterson

  • Status changed from new to accepted

comment:3 Changed 13 years ago by ajpatterson

  • Cc wmoore added
  • Description modified (diff)
  • Remaining Time changed from 0.5 to 0.1

comment:4 Changed 13 years ago by ajpatterson

  • Owner ajpatterson deleted
  • Status changed from accepted to new

comment:5 Changed 13 years ago by ajpatterson

  • Owner set to dzmacdonald

comment:6 Changed 13 years ago by ajpatterson

  • Cc dzmacdonald ajpatterson added

comment:7 Changed 13 years ago by jburel

  • Sprint changed from 2011-03-10 (7) to 2011-03-24 (8)

Moved from sprint 2011-03-10 (7)

comment:8 Changed 13 years ago by jburel

  • Sprint changed from 2011-03-24 (8) to 2011-04-07 (9)

Moved from sprint 2011-03-24 (8)

comment:9 Changed 13 years ago by jburel

  • Cc jmoore added
  • Description modified (diff)

comment:10 Changed 13 years ago by jburel

  • Description modified (diff)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.81911 sec.)

We're Hiring!