Skip to content

Commit

Permalink
fix: .vttf problem -> now uses .ttf
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed May 21, 2024
1 parent 4c5685f commit 0276243
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/text/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {
(setup_camera, setup_screenspace_text, setup_worldspace_text),
);
embedded_asset!(app, "assets/Rubik-Medium.ttf");
embedded_asset!(app, "assets/Rubik-Medium.vttf");
embedded_asset!(app, "assets/Rubik-Medium.ttf");
app.run();
}

Expand All @@ -25,7 +25,7 @@ fn setup_camera(mut commands: Commands) {

fn setup_worldspace_text(mut commands: Commands, asset_server: ResMut<AssetServer>) {
commands.spawn(VelloTextBundle {
font: asset_server.load("embedded://text/assets/Rubik-Medium.vttf"),
font: asset_server.load("embedded://text/assets/Rubik-Medium.ttf"),
text: VelloText {
content: "This text is centered\non x and y axes".to_string(),
size: 50.0,
Expand All @@ -38,7 +38,7 @@ fn setup_worldspace_text(mut commands: Commands, asset_server: ResMut<AssetServe
});

commands.spawn(VelloTextBundle {
font: asset_server.load("embedded://text/assets/Rubik-Medium.vttf"),
font: asset_server.load("embedded://text/assets/Rubik-Medium.ttf"),
text: VelloText {
content: "WXYZ".to_string(),
size: 100.0,
Expand All @@ -53,7 +53,7 @@ fn setup_worldspace_text(mut commands: Commands, asset_server: ResMut<AssetServe
fn setup_screenspace_text(mut commands: Commands, asset_server: ResMut<AssetServer>) {
// Vello text
commands.spawn(VelloTextBundle {
font: asset_server.load("embedded://text/assets/Rubik-Medium.vttf"),
font: asset_server.load("embedded://text/assets/Rubik-Medium.ttf"),
text: VelloText {
content: "Text rendered by Vello!".to_string(),
size: 15.0,
Expand Down
File renamed without changes.
Binary file not shown.

0 comments on commit 0276243

Please sign in to comment.