[ 
https://issues.apache.org/jira/browse/PIVOT-1051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17265035#comment-17265035
 ] 

Roger Lee Whitcomb commented on PIVOT-1051:
-------------------------------------------

The trickiest part is decoding something like this:
"Courier New,Andale Mono plain 12"
or
"Courier New,Andale Mono 12"
or just
"Courier New,Andale Mono"
because we have to parse backwards to figure out what the separator is, but may 
have no size or style.
Maybe a regex will help here.  Might need to look at the source of 
java.awt.Font.decode() to see how it parses things.

> Allow list of font names wherever fonts are described
> -----------------------------------------------------
>
>                 Key: PIVOT-1051
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1051
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0.5
>            Reporter: Roger Lee Whitcomb
>            Assignee: Roger Lee Whitcomb
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> CSS allows a list of font names (such as "Arial,Verdana,SansSerif" to be 
> specified wherever a font name is needed.  The list will be searched, and the 
> first font found will be used.  It would be helpful (for cross-platform use, 
> if nothing else) if the same capability would be available for Pivot.
> There are only two or three places where this would need to be implemented 
> (FontUtilities, Theme, and TerraTheme come to mind).  Maybe a few more...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to