Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Jan 15, 2021

Adds a bunch of samples for FontFeature.

Hixie added 2 commits January 15, 2021 14:06
Adds a bunch of samples for FontFeature.
@google-cla google-cla bot added the cla: yes label Jan 15, 2021
Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 16, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
@Hixie
Copy link
Contributor Author

Hixie commented Jan 16, 2021

See flutter/engine#23730 for what these document.

@Hixie
Copy link
Contributor Author

Hixie commented Jan 19, 2021

cc @GaryQian

Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 19, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 20, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
final List<String> categories = flags['category'] as List<String>;
final List<String> names = flags['name'] as List<String>;

print('Filters:\n categories: $categories\n names: $names');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Was this meant to be for debug or actually included here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was intended to stay. The generator is really only run by us, so it's useful to see what it's doing. Previously we didn't report what filters we applied. (This is especially helpful on Linux where we don't currently handle arguments so the filters you specify on the command line don't actually apply and previously that was very confusing.)


- family: Ubuntu Mono
fonts:
- asset: fonts/UbuntuMono-Bold.ttf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit trailing newline

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, fixed

Copy link
Contributor

@GaryQian GaryQian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks really comprehensive!

@Hixie
Copy link
Contributor Author

Hixie commented Jan 21, 2021

Thanks, will land on green.

Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 21, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
@Hixie Hixie merged commit 50fe0fc into flutter:master Jan 21, 2021
@Hixie Hixie deleted the font-feature branch January 21, 2021 22:38
Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 21, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 24, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
Hixie added a commit to Hixie/sky_engine that referenced this pull request Jan 26, 2021
This adds support and documentation for:

 * FontFeature.alternative(n)
 * FontFeature.alternativeFractions()
 * FontFeature.contextualAlternates()
 * FontFeature.caseSensitiveForms()
 * FontFeature.characterVariant(v)
 * FontFeature.denominator()
 * FontFeature.fractions()
 * FontFeature.historicalForms()
 * FontFeature.historicalLigatures()
 * FontFeature.liningFigures()
 * FontFeature.localeAware(enable: false)
 * FontFeature.notationalForms(v)
 * FontFeature.numerators()
 * FontFeature.oldstyleFigures()
 * FontFeature.ordinalForms()
 * FontFeature.proportionalFigures()
 * FontFeature.randomize() (minor additions to documentation)
 * FontFeature.stylisticAlternates()
 * FontFeature.scientificInferiors()
 * FontFeature.stylisticSet(n) (documentation)
 * FontFeature.subscripts()
 * FontFeature.superscripts()
 * FontFeature.swash(v)
 * FontFeature.tabularFigures() (documentation)
 * FontFeature.slashedZero()

There's hundreds more we could add but this is what I have so far.

See flutter/assets-for-api-docs#131 for the diagrams.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants