Need help with glyphy?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

behdad
493 Stars 62 Forks Other 707 Commits 16 Opened issues

Description

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.

Services available

!
?

Need anything else?

Contributors list

# 19,676
Shell
Dart
c-plus-...
opentyp...
617 commits
# 35,070
bittorr...
Electro...
gRPC
unicode
5 commits
# 40,209
vulkan
intel
vulkan-...
Perl
2 commits
# 409,704
C
Shell
microso...
xlsx
2 commits
# 348,744
Shell
Common ...
functio...
repl
1 commit
# 271,499
C++
Shell
C
multidi...
1 commit
# 2,178
blockly
openfra...
pipelin...
simbl
1 commit
# 14,466
JavaScr...
C
dac
Raspber...
1 commit
# 7,851
ESLint
commiti...
semanti...
exec
1 commit

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.

The main difference between GLyphy and other SDF-based OpenGL renderers is that most other projects sample the SDF into a texture. This has all the usual problems that sampling has. Ie. it distorts the outline and is low quality.

GLyphy instead represents the SDF using actual vectors submitted to the GPU. This results in very high quality rendering, though at a much higher runtime cost.

See this video for insight to how GLyphy works:

http://vimeo.com/behdad/glyphy

Dicussions happen on:

https://groups.google.com/forum/#!forum/glyphy


On GNOME3 and possibly other systems, if the vsync extension is not working (ie. pressing

v
in the demo doesn't have any effect), try running with
vblank_mode=0
env var.

Compilation instructions on Mac OS X

  1. Install Xcode and command line tools (as of Xcode 4.3.x, from   within
    Preferences
    ->
    Downloads
    ).
  2. Install MacPorts.
  3. sudo port install automake autoconf libtool pkgconfig freetype
  4. ./autogen.sh
  5. make

Compilation instructions on Windows

See appveyor.yml, basically first get vcpkg and install

glew
,
freetype
and
freeglut
on it, then open win32\glyphy.sln with Visual Studio.

Compilation instructions for emscripten

Assuming you have installed emscripten and have its tools on path,

  1. NOCONFIGURE=1 ./autogen.sh
  2. CPPFLAGS='-s USE_FREETYPE=1' LDFLAGS='-s USE_FREETYPE=1' emconfigure ./configure
  3. make EXEEXT=.html GL_LIBS= GLUT_LIBS=
  4. The result will be located on
    demo/.libs/glyphy-demo.html
    (not
    demo/glyphy-demo.html
    )

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.