Front Page All Articles Recent Changes Random Article

Contents

Concatenative language

  • ACL
  • Ait
  • Aocla
  • Breeze
  • Cat
  • Cognate
  • colorForth
  • CoSy
  • Deque
  • Elymas
  • Enchilada
  • ETAC
  • F
  • Factor
  • Forth
  • Freelang
  • Gershwin
  • Joy
  • Kitten
  • lang5
  • Lviv
  • min
  • mjoy
  • Mlatu
  • Ode
  • Om
  • Onyx
  • Plorth
  • Popr
  • Porth
  • PostScript
  • Quackery
  • r3
  • Raven
  • Retro
  • Staapl
  • Stabel
  • Trith
  • Worst
  • xs
  • XY
  • 5th
  • 8th

Other languages

  • APL
  • C++
  • Erlang
  • FP trivia
  • Haskell
  • Io
  • Java
  • JavaScript
  • Lisp
  • ML
  • Oberon
  • RPL
  • Self
  • Slate
  • Smalltalk

Computer Science

  • Type systems
  • Language paradigms
  • Compilers
  • Interpreters
  • Garbage collection

Meta

  • Search
  • Farkup wiki format
  • People
  • Etiquette
  • Sandbox

Factor/GSoC/2009/Windows Unicode font rendering

Mentor

Slava Pestov

Level

Intermediate

Skills required

  • Knowledge of Unicode
  • Knowledge of the Win32 API
  • Knowledge of Factor's UI toolkit

Technical outline

Factor has Uniscribe bindings in basis/windows/. This needs to be hooked up with the ui.text API, namely the following operations need to be implemented:

  • rendering a piece of text to a DC
  • getting text width, height, baseline, cap height and x-height (last two optional)
  • getting font ascent, descent, cap height, x-height (all optional but nice)
  • convert x offset to code point number and vice versa

The following vocabularies are useful to look at:

  • core-text
  • core-text.fonts
  • ui.text
  • ui.text.core-text

Helpful links

  • http://www.microsoft.com/typography/developers/uniscribe/uniscribe.htm
  • http://msdn.microsoft.com/en-us/library/ms776483(VS.85).aspx
  • http://factor-language.blogspot.com/2009/03/rendering-unicode-text-with-pango-and.html
  • http://factor-language.blogspot.com/2009/02/metric-bounds-versus-image-bounds.html
  • http://factor-language.blogspot.com/2009/02/font-metrics-and-baseline-alignment.html
  • http://factor-language.blogspot.com/2009/01/rendering-unicode-text-to-opengl.html

This revision created on Sat, 14 Mar 2009 00:04:25 by erg

Latest Revisions Edit

All content is © 2008-2023 by its respective authors. By adding content to this wiki, you agree to release it under the BSD license.