Skip to content

EvanBacon/expo-three-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expo Three Text

Example of using text in Expo

Example:

Convert your fonts to three.js text json with this tool: https://gero3.github.io/facetype.js/

const textMesh = new TextMesh();
textMesh.material = new THREE.MeshPhongMaterial({ color: 0x056ecf });
textMesh.update({
  text: 'Hey There :)',
  font: require('./three_fonts/neue_haas_unica_pro_medium.json'), // This accepts json, THREE.Font, or a uri to remote THREE.Font json
});

Links

Releases

No releases published

Packages

No packages published