You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)A-platform/fontsC-assignedThere is someone working on resolving the issue
See also occurrences of "generic" in components/gfx/font_cache_task. Since there is a fixed set of generic families, maybe the hash map in FontCache::generic_fonts should be replaced with a match expression on the style crate’s FontFamily enum.
@eefriedman Thank you. @SimonSapin Thank you for the explanation of the issue. I have made some preliminary changes which I will put in a pull request.
As for handling the variants in components/gfx/font_context.rs, I am not sure anything needs to be done there, since it is not directly interacting with the FontFamily enum.
As for the modifying components/gfx/font_cache_task, I did replace the plain string instances with instances of the FontFamily enum, however, I did not remove the HashMap. My reasoning is because when transform_family is called, if we did not use the HashMap we would have to calculate the mapped family every time instead of doing it one time upfront during hashmap population.
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)A-platform/fontsC-assignedThere is someone working on resolving the issue
Activity
SimonSapin commentedon Nov 6, 2015
See also occurrences of "generic" in
components/gfx/font_cache_task. Since there is a fixed set of generic families, maybe the hash map inFontCache::generic_fontsshould be replaced with amatchexpression on the style crate’sFontFamilyenum.SimonSapin commentedon Nov 6, 2015
CC @Ms2ger @pcwalton @glennw for winning the
git shortlog -sn components/gfx/font*lottery.craftytrickster commentedon Nov 8, 2015
If possible, I would like to attempt this.
eefriedman commentedon Nov 8, 2015
Okay; feel free to ask if you have any questions.
craftytrickster commentedon Nov 9, 2015
@eefriedman Thank you.
@SimonSapin Thank you for the explanation of the issue. I have made some preliminary changes which I will put in a pull request.
As for handling the variants in
components/gfx/font_context.rs, I am not sure anything needs to be done there, since it is not directly interacting with the FontFamily enum.As for the modifying
components/gfx/font_cache_task, I did replace the plain string instances with instances of the FontFamily enum, however, I did not remove the HashMap. My reasoning is because whentransform_familyis called, if we did not use the HashMap we would have to calculate the mapped family every time instead of doing it one time upfront during hashmap population.Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=<try>
Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=glennw
Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=glennw
servo: Merge #8420 - Enabled use of FontFamily enum type (from crafty…
servo: Merge #8420 - Enabled use of FontFamily enum type (from crafty…
servo: Merge #8420 - Enabled use of FontFamily enum type (from crafty…
servo: Merge #8420 - Enabled use of FontFamily enum type (from crafty…
3 remaining items
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configurat…
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configuration
fonts: Add support for generic font families and font size configurat…
chore: update readablestream branch to latest main commit (#32823)
fonts: Add support for generic font families and font size configurat…