From: Neil H. <ne...@sc...> - 2001-08-30 01:29:45
|
Kevin Altis: > So we want to do a separate 'weight': 'normal', 'bold', 'lighter'? 'lighter' > (wxLIGHT in wxPython) doesn't ever seem to do anything. 'oblique' (wxSLANT) > appears to be the same as 'italic' (wxITALIC). Just tried to provoke both the Win32 API and Internet Explorer into doing something with a light font using a weight of 100 which is the lightest possible but there is no effect so its unlikely that wxWindows can do anything with it either. If it never works then there is probably not much point in supporting it ;) The reason I wanted to be able to choose lighter weights is for very high resolution modes where you mostly have two pixel wide characters but would like to choose thinner characters sometimes. > CSS doesn't support underline as a style, underline is a a text decoration. > > "The text-decoration property allows text to be decorated through one of > five properties: underline, overline, line-through, blink, or the default, > none." > > Are you saying that you want the style to be a list of one or more values > 'normal', 'italic', 'oblique', 'bold', 'underline'? Mostly I'd prefer options to be separate rather than trying to mix them together in some sort of style attribute which doesn't correspond to any underlying API. Trying to produce a new font description model that is different but less capable than any of wxWindows, Win32, or CSS looks like a backwards step to me. > Is Small Caps possible in wxPython/wxWindows? That's font-variant in CSS > terms. Its not a Win32 choice so its unlikely wxWindows will try to handle it. Sometimes small-caps fonts are available so this can be done by choosing a family name of such a font. Neil |