Skip to content

Display text in WebGL using Multichannel Signed Distance Field text fonts using React and React-Three-Fiber

Notifications You must be signed in to change notification settings

Shags/react-msdf-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-msdf-text

Display text in WebGL using Multichannel Signed Distance Field text fonts using React and React-Three-Fiber

This project borrows heavily from Jam3's work on MSDF text in Three.js

NPM JavaScript Style Guide

Install

npm install --save react-msdf-text

Usage

import React, { Component } from 'react'
import { Canvas } from 'react-three-fiber'
import { Text } from 'react-msdf-text'
import 'react-msdf-text/dist/index.css'

class Example extends Component {
  render() {
    return (
      <Canvas>
        <Text text={'Hello World!'} />
      </Canvas>
    )
  }
}

License

MIT © Shags

About

Display text in WebGL using Multichannel Signed Distance Field text fonts using React and React-Three-Fiber

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published