Skip to content

Support font-inlining for global styles #23054

Closed

Description

@twerske

🚀 Feature request

Command (mark with an x)

  • build

Description

Currently, font inlining only works for font that are declared in the index.html.

<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">

However, fonts can also be imported in CSS files using the @import rule.

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap");

We should probably handle both cases.

Activity

  1. mgechev commented on Apr 28, 2022

    @mgechev
    Member

    Ideally we'd like to keep the font inlining as an implementation detail and hide it from developers. Can we discover all the fonts in global styles/index.html and inline them?

  2. alan-agius4 commented on Apr 29, 2022

    @alan-agius4
    Collaborator

    We already automatically inline all the Google and Adobe fonts found in the index.html.

    Not entirely sure, what is being requested here.

  3. added
    needs: more info
    on Apr 29, 2022
  4. twerske commented on May 3, 2022

    @twerske
    ContributorAuthor

    This would be the same but for fonts found in styles.css and style files.

    Additionally @jelbourn and I discussed a schematic for ng add --font-inlining <font family>

  5. alan-agius4 commented on May 6, 2022

    @alan-agius4
    Collaborator

    Following a convo with @twerske on Slack, this request is to enable font-inline of fonts in global stylesheets. (I have update the issue to reflect this).

    Regarding @jelbourn request, I am still not sure what it being requested. I also suggest that we keep one feature per issue as it would be easier to track.

  6. added
    feature
    and removed
    needs: more info
    on May 6, 2022
  7. modified the milestone: needsTriage on May 6, 2022
  8. changed the title [-]schematic to add font inlining for a new font family[/-] [+]Support font-inlining for global styles[/+] on May 6, 2022
  9. added
    feature: votes required
    on May 6, 2022
  10. angular-robot commented on May 6, 2022

    @angular-robot
    Contributor

    This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

    You can find more details about the feature request process in our documentation.

  11. 2 remaining items

  12. added
    feature: insufficient votes
    and removed
    feature: votes required
    on Jul 4, 2022
  13. alan-agius4 commented on Oct 3, 2023

    @alan-agius4
    Collaborator

    @twerske is this something that we still want to persue?

  14. added 8 commits that reference this issue on Dec 8, 2023
    842de05
    89b467b
    7468f49
    d3d1241
    ce4bb81
    46f8334
    3c96806
    f1f331e
  15. added a commit that references this issue on Dec 9, 2023
    f6e67df
  16. angular-automatic-lock-bot commented on Jan 9, 2024

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  17. locked and limited conversation to collaborators on Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular-devkit/build-angulardevkit/build-angular:browserfeaturefeature: insufficient votes

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions