зеркало из https://github.com/mozilla/gecko-dev.git
Bug 961734 - reorder nsFont fields for slightly better packing; r=jfkthame
This commit is contained in:
Родитель
37488975e6
Коммит
e2549e0f51
|
@ -83,6 +83,12 @@ struct NS_GFX nsFont {
|
||||||
// constants; see gfxFontConstants.h).
|
// constants; see gfxFontConstants.h).
|
||||||
int16_t stretch;
|
int16_t stretch;
|
||||||
|
|
||||||
|
// Kerning
|
||||||
|
uint8_t kerning;
|
||||||
|
|
||||||
|
// Synthesis setting, controls use of fake bolding/italics
|
||||||
|
uint8_t synthesis;
|
||||||
|
|
||||||
// The logical size of the font, in nscoord units
|
// The logical size of the font, in nscoord units
|
||||||
nscoord size;
|
nscoord size;
|
||||||
|
|
||||||
|
@ -106,12 +112,6 @@ struct NS_GFX nsFont {
|
||||||
// (see http://www.microsoft.com/typography/otspec/languagetags.htm).
|
// (see http://www.microsoft.com/typography/otspec/languagetags.htm).
|
||||||
nsString languageOverride;
|
nsString languageOverride;
|
||||||
|
|
||||||
// Kerning
|
|
||||||
uint8_t kerning;
|
|
||||||
|
|
||||||
// Synthesis setting, controls use of fake bolding/italics
|
|
||||||
uint8_t synthesis;
|
|
||||||
|
|
||||||
// Initialize the font struct with an ASCII name
|
// Initialize the font struct with an ASCII name
|
||||||
nsFont(const char* aName, uint8_t aStyle, uint8_t aVariant,
|
nsFont(const char* aName, uint8_t aStyle, uint8_t aVariant,
|
||||||
uint16_t aWeight, int16_t aStretch, uint8_t aDecoration,
|
uint16_t aWeight, int16_t aStretch, uint8_t aDecoration,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче