Skip to content

Custom font support#54

Merged
hecrj merged 2 commits into
masterfrom
feature/external-fonts
Nov 14, 2019
Merged

Custom font support#54
hecrj merged 2 commits into
masterfrom
feature/external-fonts

Conversation

@hecrj
Copy link
Copy Markdown
Member

@hecrj hecrj commented Nov 13, 2019

Depends on #52.

This PR implements a basic Font type and a Text::font method. End-users can now build GUIs using their own custom fonts. This is useful if you want to render icons, for instance!

It also refactors a bit the text pipeline in iced_wgpu.

Changelog

Added

  • The Font type in iced_core with a Default and External variant.
  • A Text::font method. It sets the Font to use to render the Text.

@hecrj hecrj added the feature New feature or request label Nov 13, 2019
@hecrj hecrj added this to the 0.1.0 milestone Nov 13, 2019
@hecrj hecrj self-assigned this Nov 13, 2019
@hecrj hecrj mentioned this pull request Nov 13, 2019
@hecrj hecrj changed the base branch from custom-layout-engine to master November 14, 2019 05:47
@hecrj hecrj merged commit a16dab9 into master Nov 14, 2019
@hecrj hecrj deleted the feature/external-fonts branch November 14, 2019 05:53
ArtHome12 added a commit to ArtHome12/iced that referenced this pull request Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant