hi there,

I am working on providing a pure-Go TeX engine.
to achieve such a thing, I'd need to be able to decode and use the
so-called "PacKed font file" format (PK fonts).
(I know it's a very old & deprecated file format, but I figured it would
be easier on me to start "old tech" first)

I think I managed to properly decode it, and managed to extract the
bitmap data of each glyph:

- https://play.golang.org/p/dA8cev_x4TQ

the program above displays the bitmap data extracted for glyph 'a':

$> go run ./main.go
  ...........********...................
  ........**************................
  ......*****.......******..............
  .....***............*****.............
  ....*****............******...........
  ...*******............******..........
  ...********...........******..........
  ...********............******.........
  ...********............******.........
  ...********.............******........
  ....******..............******........
  .....****...............******........
  ........................******........
  ........................******........
  ........................******........
  ........................******........
  .................*************........
  .............*****************........
  ..........*********.....******........
  ........*******.........******........
  ......*******...........******........
  ....********............******........
  ...*******..............******........
  ..********..............******........
  .********...............******........
  .*******................******........
  .*******................******......**
  *******.................******......**
  *******.................******......**
  *******.................******......**
  *******................*******......**
  *******................*******......**
  ********..............********......**
  .*******.............***.*****......**
  .********............**...*****....**.
  ..********.........****...*****....**.
  ....*******......****......*********..
  ......**************........*******...
  .........********............*****....

now, the question is: how should I packaged that data so that I can
interoperate best with, say, golang.org/x/image/font ?

would I just use a golang.org/x/image/font/basicfont.Face ?

cheers,
-s

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CDUBWL1U9FSV.3DN7WB3DOZFFD%40zoidberg.

Reply via email to