2010/1/21 Russell Ryan <rr...@mit.edu>: > To set the font to "Droid Sans Mono", 14px I would do the following: > > <Text> > ... > <Style>font: "Droid Sans Mono"; font-size: 14px;</Style> > ... > </Text>
According to the docs for Qt styles (and it's the same for CSS), 'font' is a shortcut for setting multiple font-* properties in one statement, so you can just use font: "Droid Sans Mono" 14px; To specify properties individually, you'd use: font-family: "Droid Sans Mono"; font-size: 14px; > I'm not sure about the problem with fontsize 18 being different on > Windows/Linux/Mac. Perhaps you should use 'em' instead of 'px' in the > stylesheet. > > You will need to use a font name that will be found on all the > platforms. I'm not sure if you can specify a series of fonts to try in > the font: section. It may or may not work with font, but it wouldn't be very clear imo, so it might be better to use font-family. Eg font-family: "Droid Sans Mono", "Monospac821 BT", Menlo, "Andale Mono", monospace; (usually a good idea to use one of the generic CSS families at the end of a font list, especially if you're relying on the font having a particular property such as, in this case, being fixed-width.) Ben -- Quextal plays progressive and psychedelic breakbeats and 4/4s for innerspace journeying and wild dancing. Free Trips available from http://quextal.com. Search for Quextal on Facebook to get gig/radio info direct. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Mixxx-devel mailing list Mixxx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mixxx-devel