Lines Matching refs:weight

30 // This indicates that the weight or italic information should be resolved by OS/2 table.
47 // style. There is a base weight concept which is used for calculating relative style from an
50 // For example, if the base Typeface has a base weight of 400 and the desired style is bold, the
51 // resulting Typeface renders the text with a weight of 700. This function doesn't change the
52 // base weight, so even if you create a new Typeface from the bold Typeface specifying bold on
53 // it again, the text is still rendered with a weight of 700.
54 // You can create another base weight Typeface from an existing Typeface with
56 // a specified base weight.
57 // The createAbsolute method creates a new Typeface ignoring the base weight.
59 // Typeface* base = resolveDefault(nullptr); // Usually this has a weight of 400.
60 // Typeface* bold = createRelative(base, Bold); // Rendered with a weight of 700.
61 // Typeface* bold2 = createRelative(bold, Bold); // Rendered with a weight of 700.
63 // Typeface* boldBase = createWithDifferentBaseWeight(base, 700); // With a weight of 700.
64 // Typeface* boldBold = createRelative(boldBase, Bold); // Rendered with a weight of 1000.
66 // Typeface* lightBase = createWithDifferentBaseWeight(base, 300); // With a weight of 300.
67 // Typeface* lightBold = createRelative(lightBase, Bold); // Rendered with a weight of 600.
69 // Typeface* black = createAbsolute(base, 900, false); // Rendered with a weight of 900.
72 static Typeface* createAbsolute(Typeface* base, int weight, bool italic);
79 int weight, int italic);
86 // base weight in CSS-style units, 1..1000