History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2602
Type: Bug Bug
Status: Verified Verified
Resolution: Fixed
Priority: P1 P1
Assignee: Frisco Del Rosario
Reporter: Benjamin Shine
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

font formatting with $style is broken

Created: 01/Sep/06 04:48 PM   Updated: 15/Sep/06 07:09 PM
Component/s: LFC - CSS
Affects Version/s: 3.4
Fix Version/s: 3.4

Time Tracking:
Not Specified

Severity: Minor
Runtime: N/A
Flags: Emerald
Fix in hand: False


 Description  « Hide
Applying font attributes, (font, size, color, style) probably won't work right with CSS, because text formatting does not work with standard setters.


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Benjamin Shine - 06/Sep/06 11:38 PM
Let's try to fix this for coal.

Benjamin Shine - 10/Sep/06 06:00 PM
See tests in test/style/typography/typography-test.lzx

Using $style to style the following attributes of the <text> element
demonstrably works without complication:
fgcolor
bgcolor
text

$style with fonts is implemented enough to get the job done, but
certain usages of it cause compiler warnings or errors.

#gt7 {
stylefontstyle: "bold";
}
combined with
fontstyle="$style{'stylefontstyle'}" yields a compiler error:
Unknown style UNDEFINED STYLE

stylefontsize: 18; /* nice big text */
combined with
fontsize="$style{'stylefontsize'}"
yields a compile warning: bad value for attribute "fontsize"
but the font is drawn correctly