Initial import of PDF creator with text, image adding capabilities

This commit is contained in:
Gunnsteinn Hall 2017-07-05 23:10:57 +00:00
parent fbff8ffdba
commit 1a5c3eb4ac
33 changed files with 28062 additions and 0 deletions

410
pdf/creator/block.go Normal file
View File

@ -0,0 +1,410 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"errors"
"github.com/unidoc/unidoc/pdf/contentstream"
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model"
)
// A block can contain a portion of PDF page contents. It has a width and a position and can
// be placed anywhere on a page. It can even contain a whole page, and is used in the creator
// where each Drawable object can output one or more blocks, each representing content for separate pages
// (typically needed when page breaks occur).
type block struct {
// Block contents and resources.
contents *contentstream.ContentStreamOperations
resources *model.PdfPageResources
// Positioning: relative / absolute.
positioning positioning
// Absolute coordinates (when in absolute mode).
xPos, yPos float64
// The bounding box for the block.
width float64
height float64
// Rotation angle.
angle float64
// Margins to be applied around the block when drawing on page.
margins margins
}
// Create a new block with specified width and height.
func NewBlock(width float64, height float64) *block {
b := &block{}
b.contents = &contentstream.ContentStreamOperations{}
b.resources = model.NewPdfPageResources()
b.width = width
b.height = height
return b
}
// Create a block from a PDF page. Useful for loading template pages as blocks from a PDF document and additional
// content with the creator.
func NewBlockFromPage(page *model.PdfPage) (*block, error) {
b := &block{}
content, err := page.GetAllContentStreams()
if err != nil {
return nil, err
}
contentParser := contentstream.NewContentStreamParser(content)
operations, err := contentParser.Parse()
if err != nil {
return nil, err
}
operations.WrapIfNeeded()
b.contents = operations
if page.Resources != nil {
b.resources = page.Resources
} else {
b.resources = model.NewPdfPageResources()
}
mbox, err := page.GetMediaBox()
if err != nil {
return nil, err
}
if mbox.Llx != 0 || mbox.Lly != 0 {
// Account for media box offset if any.
b.translate(-mbox.Llx, mbox.Lly)
}
b.width = mbox.Urx - mbox.Llx
b.height = mbox.Ury - mbox.Lly
return b, nil
}
// Block sizing is always based on specified size. Returns SizingSpecifiedSize.
func (blk *block) GetSizingMechanism() Sizing {
return SizingSpecifiedSize
}
// Set the rotation angle in degrees.
func (blk *block) SetAngle(angleDeg float64) {
blk.angle = angleDeg
}
// Duplicate the block with a new copy of the operations list.
func (blk *block) duplicate() *block {
dup := &block{}
// Copy over.
*dup = *blk
dupContents := contentstream.ContentStreamOperations{}
for _, op := range *blk.contents {
dupContents = append(dupContents, op)
}
dup.contents = &dupContents
return dup
}
// Draws the block contents on a template page block.
func (blk *block) GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error) {
blocks := []*block{}
if blk.positioning.isRelative() {
// Draw at current ctx.X, ctx.Y position
dup := blk.duplicate()
cc := contentstream.NewContentCreator()
cc.Translate(ctx.X, ctx.pageHeight-ctx.Y-blk.height)
if blk.angle != 0 {
// Make the rotation about the upper left corner.
// XXX/TODO: Account for rotation origin. (Consider).
cc.Translate(0, blk.Height())
cc.RotateDeg(blk.angle)
cc.Translate(0, -blk.Height())
}
contents := append(*cc.Operations(), *dup.contents...)
dup.contents = &contents
blocks = append(blocks, dup)
ctx.Y += blk.height
} else {
// Absolute. Draw at blk.xPos, blk.yPos position
dup := blk.duplicate()
cc := contentstream.NewContentCreator()
cc.Translate(blk.xPos, ctx.pageHeight-blk.yPos-blk.height)
if blk.angle != 0 {
// Make the rotation about the upper left corner.
// XXX/TODO: Consider supporting specification of rotation origin.
cc.Translate(0, blk.Height())
cc.RotateDeg(blk.angle)
cc.Translate(0, -blk.Height())
}
contents := append(*cc.Operations(), *dup.contents...)
contents.WrapIfNeeded()
dup.contents = &contents
blocks = append(blocks, dup)
}
return blocks, ctx, nil
}
// Get block height.
func (blk *block) Height() float64 {
return blk.height
}
// Get block width.
func (blk *block) Width() float64 {
return blk.width
}
// Add contents to a block. Wrap both existing and new contents to ensure
// independence of content operations.
func (blk *block) addContents(operations *contentstream.ContentStreamOperations) {
blk.contents.WrapIfNeeded()
operations.WrapIfNeeded()
*blk.contents = append(*blk.contents, *operations...)
}
// Set block margins.
func (blk *block) SetMargins(left, right, top, bottom float64) {
blk.margins.left = left
blk.margins.right = right
blk.margins.top = top
blk.margins.bottom = bottom
}
// Return block margins: left, right, top, bottom margins.
func (blk *block) GetMargins() (float64, float64, float64, float64) {
return blk.margins.left, blk.margins.right, blk.margins.top, blk.margins.bottom
}
// Set block positioning to absolute and set the absolute position coordinates as specified.
func (blk *block) SetPos(x, y float64) {
blk.positioning = positionAbsolute
blk.xPos = x
blk.yPos = y
}
// Scale block by specified factors in the x and y directions.
func (blk *block) Scale(sx, sy float64) {
ops := contentstream.NewContentCreator().
Scale(sx, sy).
Operations()
*blk.contents = append(*ops, *blk.contents...)
blk.contents.WrapIfNeeded()
blk.width *= sx
blk.height *= sy
}
// Scale to a specified width, maintaining aspect ratio.
func (blk *block) ScaleToWidth(w float64) {
ratio := w / blk.width
blk.Scale(ratio, ratio)
}
// Scale to a specified height, maintaining aspect ratio.
func (blk *block) ScaleToHeight(h float64) {
ratio := h / blk.height
blk.Scale(ratio, ratio)
}
// Internal function to apply translation to the block, moving block contents on the PDF.
func (blk *block) translate(tx, ty float64) {
ops := contentstream.NewContentCreator().
Translate(tx, -ty).
Operations()
*blk.contents = append(*ops, *blk.contents...)
blk.contents.WrapIfNeeded()
}
// Draw the block on a page.
func (blk *block) drawToPage(page *model.PdfPage) error {
// Check if page contents are wrapped - if not wrap it.
content, err := page.GetAllContentStreams()
if err != nil {
return err
}
contentParser := contentstream.NewContentStreamParser(content)
ops, err := contentParser.Parse()
if err != nil {
return err
}
ops.WrapIfNeeded()
// Ensure resource dictionaries are available.
if page.Resources == nil {
page.Resources = model.NewPdfPageResources()
}
// Merge the contents into ops.
err = mergeContents(ops, page.Resources, blk.contents, blk.resources)
if err != nil {
return err
}
err = page.SetContentStreams([]string{string(ops.Bytes())}, core.NewFlateEncoder())
if err != nil {
return err
}
return nil
}
// Draw the drawable d on the block.
// Note that the drawable must not wrap, i.e. only return one block. Otherwise an error is returned.
func (blk *block) Draw(d Drawable) error {
ctx := drawContext{}
ctx.Width = blk.width
ctx.Height = blk.height
ctx.pageWidth = blk.width
ctx.pageHeight = blk.height
ctx.X = 0 // Upper left corner of block
ctx.Y = 0
blocks, _, err := d.GeneratePageBlocks(ctx)
if err != nil {
return err
}
if len(blocks) != 1 {
return errors.New("Too many output blocks")
}
for _, newBlock := range blocks {
err := mergeContents(blk.contents, blk.resources, newBlock.contents, newBlock.resources)
if err != nil {
return err
}
}
return nil
}
// Append another block onto the block.
func (blk *block) mergeBlocks(toAdd *block) error {
err := mergeContents(blk.contents, blk.resources, toAdd.contents, toAdd.resources)
return err
}
// Merge contents and content streams.
// Active in the sense that it modified the input contents and resources.
func mergeContents(contents *contentstream.ContentStreamOperations, resources *model.PdfPageResources,
contentsToAdd *contentstream.ContentStreamOperations, resourcesToAdd *model.PdfPageResources) error {
// To properly add contents from a block, we need to handle the resources that the block is
// using and make sure it is accessible in the modified page.
//
// Currently only supporting: Font, XObject, Colormap resources
// from the block.
//
xobjectMap := map[core.PdfObjectName]core.PdfObjectName{}
fontMap := map[core.PdfObjectName]core.PdfObjectName{}
csMap := map[core.PdfObjectName]core.PdfObjectName{}
for _, op := range *contentsToAdd {
switch op.Operand {
case "Do":
// XObject.
if len(op.Params) == 1 {
if name, ok := op.Params[0].(*core.PdfObjectName); ok {
if _, processed := xobjectMap[*name]; !processed {
var useName core.PdfObjectName
// Process if not already processed..
obj, _ := resourcesToAdd.GetXObjectByName(*name)
if obj != nil {
useName = *name
for {
obj2, _ := resources.GetXObjectByName(useName)
if obj2 == nil || obj2 == obj {
break
}
// If there is a conflict... then append "0" to the name..
useName = useName + "0"
}
}
resources.SetXObjectByName(useName, obj)
xobjectMap[*name] = useName
}
useName := xobjectMap[*name]
op.Params[0] = &useName
}
}
case "Tf":
// Font.
if len(op.Params) == 2 {
if name, ok := op.Params[0].(*core.PdfObjectName); ok {
if _, processed := fontMap[*name]; !processed {
var useName core.PdfObjectName
// Process if not already processed.
obj, found := resourcesToAdd.GetFontByName(*name)
if found {
useName = *name
for {
obj2, found := resources.GetFontByName(useName)
if !found || obj2 == obj {
break
}
useName = useName + "0"
}
}
resources.SetFontByName(useName, obj)
fontMap[*name] = useName
}
useName := fontMap[*name]
op.Params[0] = &useName
}
}
case "CS", "cs":
// Colorspace.
if len(op.Params) == 1 {
if name, ok := op.Params[0].(*core.PdfObjectName); ok {
if _, processed := csMap[*name]; !processed {
var useName core.PdfObjectName
// Process if not already processed.
cs, found := resourcesToAdd.GetColorspaceByName(*name)
if found {
useName = *name
for {
cs2, found := resources.GetColorspaceByName(useName)
if !found || cs == cs2 {
break
}
useName = useName + "0"
}
}
resources.SetColorspaceByName(useName, cs)
csMap[*name] = useName
}
useName := csMap[*name]
op.Params[0] = &useName
}
}
}
*contents = append(*contents, op)
}
return nil
}

146
pdf/creator/chapters.go Normal file
View File

@ -0,0 +1,146 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"fmt"
"math"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/model/fonts"
)
type chapter struct {
number int
title string
heading *paragraph
subchapters int
contents []Drawable
// Positioning: relative / absolute.
positioning positioning
// Absolute coordinates (when in absolute mode).
xPos, yPos float64
// Margins to be applied around the block when drawing on page.
margins margins
// Chapter sizing is set to occupy available space.
sizing Sizing
}
func (c *Creator) NewChapter(title string) *chapter {
chap := &chapter{}
c.chapters++
chap.number = c.chapters
chap.title = title
heading := fmt.Sprintf("%d. %s", c.chapters, title)
p := NewParagraph(heading)
p.SetFontSize(16)
p.SetFont(fonts.NewFontHelvetica()) // bold?
chap.heading = p
chap.contents = []Drawable{}
// Chapter sizing is fixed to occupy available size.
chap.sizing = SizingOccupyAvailableSpace
return chap
}
// Chapter sizing is fixed to occupy available space in the drawing context.
func (chap *chapter) GetSizingMechanism() Sizing {
return chap.sizing
}
// Chapter height is a sum of the content heights.
func (chap *chapter) Height() float64 {
h := float64(0)
for _, d := range chap.contents {
h += d.Height()
}
return h
}
// Chapter width is the maximum of the content widths.
func (chap *chapter) Width() float64 {
maxW := float64(0)
for _, d := range chap.contents {
maxW = math.Max(maxW, d.Width())
}
return maxW
}
// Set absolute coordinates.
func (chap *chapter) SetPos(x, y float64) {
chap.positioning = positionAbsolute
chap.xPos = x
chap.yPos = y
}
// Set chapter margins. Typically not needed as the page margins are used.
func (chap *chapter) SetMargins(left, right, top, bottom float64) {
chap.margins.left = left
chap.margins.right = right
chap.margins.top = top
chap.margins.bottom = bottom
}
// Get chapter margins: left, right, top, bottom.
func (chap *chapter) GetMargins() (float64, float64, float64, float64) {
return chap.margins.left, chap.margins.right, chap.margins.top, chap.margins.bottom
}
// Add a new drawable to the chapter.
func (chap *chapter) Add(d Drawable) {
if Drawable(chap) == d {
common.Log.Debug("ERROR: Cannot add itself")
return
}
switch d.(type) {
case *chapter:
common.Log.Debug("Error: Cannot add chapter to a chapter")
case *paragraph, *image, *block, *subchapter:
chap.contents = append(chap.contents, d)
default:
common.Log.Debug("Unsupported: %T", d)
}
}
// XXX/FIXME: Need to know actual page numbers to keep track for TOC.
// TODO: Add page number to context... ?
func (chap *chapter) GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error) {
blocks, ctx, err := chap.heading.GeneratePageBlocks(ctx)
if err != nil {
return blocks, ctx, err
}
for _, d := range chap.contents {
newBlocks, c, err := d.GeneratePageBlocks(ctx)
if err != nil {
return blocks, ctx, err
}
if len(newBlocks) < 1 {
continue
}
// The first block is always appended to the last..
blocks[len(blocks)-1].mergeBlocks(newBlocks[0])
blocks = append(blocks, newBlocks[1:]...)
ctx = c
}
return blocks, ctx, nil
}

64
pdf/creator/const.go Normal file
View File

@ -0,0 +1,64 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
type PageSize int
const (
PageSizeA3 PageSize = iota
PageSizeA4 = iota
PageSizeA5 = iota
PageSizeLetter = iota
PageSizeLegal = iota
)
// Page sizes in mm.
var pageSizesMM map[PageSize][2]float64 = map[PageSize][2]float64{
PageSizeA3: {297, 420},
PageSizeA4: {210, 297},
PageSizeA5: {148, 210},
PageSizeLetter: {216, 280},
PageSizeLegal: {216, 356},
}
type TextAlignment int
const (
TextAlignmentLeft TextAlignment = iota
TextAlignmentRight
TextAlignmentCenter
TextAlignmentJustify
)
// Relative and absolute positioning types.
type positioning int
const (
positionRelative positioning = iota
positionAbsolute
)
func (p positioning) isRelative() bool {
return p == positionRelative
}
func (p positioning) isAbsolute() bool {
return p == positionAbsolute
}
// Sizing type: Either drawable size is fully specified or occupies available space in the drawing context.
type Sizing int
const (
SizingOccupyAvailableSpace Sizing = iota
SizingSpecifiedSize
)
func (s Sizing) occupyAvailableSpace() bool {
return s == SizingOccupyAvailableSpace
}
func (s Sizing) specifiedSize() bool {
return s == SizingSpecifiedSize
}

291
pdf/creator/creator.go Normal file
View File

@ -0,0 +1,291 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"os"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/model"
)
//
// The content creator is a wrapper around functionality for creating PDF reports and/or adding new
// content onto imported PDF pages.
//
type Creator struct {
pages []*model.PdfPage
activePage *model.PdfPage
pagesize PageSize
context drawContext
pageMargins margins
pageWidth, pageHeight float64
// Keep track of number of chapters for indexing.
chapters int
genFrontPageFunc func(pageNum int, totPages int)
genTableOfContentFunc func(pageNum int, totPages int)
drawHeaderFunc func(pageNum int, totPages int)
drawFooterFunc func(pageNum int, totPages int)
finalized bool
}
type margins struct {
left float64
right float64
top float64
bottom float64
}
// Create a new instance of the PDF creator.
func New() *Creator {
c := &Creator{}
c.pages = []*model.PdfPage{}
c.SetPageSize(PageSizeLetter)
m := 0.1 * c.pageWidth
c.pageMargins.left = m
c.pageMargins.right = m
c.pageMargins.top = m
c.pageMargins.bottom = m
return c
}
// Returns the current page width.
func (c *Creator) Width() float64 {
//return c.context.Width
return c.pageWidth
}
// Returns the current page height.
func (c *Creator) Height() float64 {
//return c.context.Height
return c.pageHeight
}
func (c *Creator) setActivePage(p *model.PdfPage) {
c.activePage = p
}
func (c *Creator) getActivePage() *model.PdfPage {
if c.activePage == nil {
if len(c.pages) == 0 {
return nil
}
return c.pages[len(c.pages)-1]
} else {
return c.activePage
}
}
// Set a new page size. Pages that are added after this will be created with this page size.
// Does not affect pages already created.
func (c *Creator) SetPageSize(size PageSize) {
c.pagesize = size
dimensions := dimensionsMMtoPoints(pageSizesMM[size], float64(72.0))
c.pageWidth = dimensions[0]
c.pageHeight = dimensions[1]
}
// Set a function to draw a header on created output pages.
func (c *Creator) DrawHeader(drawHeaderFunc func(int, int)) {
c.drawHeaderFunc = drawHeaderFunc
}
// Set a function to draw a footer on created output pages.
func (c *Creator) DrawFooter(drawFooterFunc func(int, int)) {
c.drawFooterFunc = drawFooterFunc
}
// Set a function to generate a front page.
func (c *Creator) CreateFrontPage(genFrontPageFunc func(pageNum int, numPages int)) {
c.genFrontPageFunc = genFrontPageFunc
}
// Seta function to generate table of contents.
func (c *Creator) CreateTableOfContents(genTOCFunc func(pageNum int, numPages int)) {
c.genTableOfContentFunc = genTOCFunc
}
// Create a new page with current parameters.
func (c *Creator) newPage() *model.PdfPage {
page := model.NewPdfPage()
// Default: 72 points per inch.
ppi := float64(72.0)
dimensions := dimensionsMMtoPoints(pageSizesMM[c.pagesize], ppi)
width := dimensions[0]
height := dimensions[1]
bbox := model.PdfRectangle{0, 0, width, height}
page.MediaBox = &bbox
c.pageWidth = width
c.pageHeight = height
// Update context, move to upper left corner.
c.context.X = c.pageMargins.left
c.context.Y = c.pageMargins.top
c.context.Width = c.pageWidth - c.pageMargins.right - c.pageMargins.left
c.context.Height = c.pageHeight - c.pageMargins.bottom - c.pageMargins.top
c.context.pageHeight = c.pageHeight
c.context.pageWidth = c.pageWidth
c.context.margins = c.pageMargins
return page
}
// Adds a new page to the creator and sets as the active page.
func (c *Creator) NewPage() {
page := c.newPage()
c.pages = append(c.pages, page)
}
func (c *Creator) AddPage(page *model.PdfPage) {
c.pages = append(c.pages, page)
}
// Call before writing out. Takes care of adding headers and footers, as well as generating front page and
// table of contents.
func (c *Creator) finalize() {
totPages := len(c.pages)
hasFrontPage := false
if c.genFrontPageFunc != nil {
totPages++
p := c.newPage()
// Place at front.
c.pages = append([]*model.PdfPage{p}, c.pages...)
c.setActivePage(p)
c.genFrontPageFunc(1, totPages)
hasFrontPage = true
}
if c.genTableOfContentFunc != nil {
totPages++
p := c.newPage()
// Place at front.
pageNum := 1
if hasFrontPage {
c.pages = append([]*model.PdfPage{c.pages[0], p}, c.pages[1:]...)
pageNum = 2
} else {
c.pages = append([]*model.PdfPage{p}, c.pages...)
}
c.setActivePage(p)
c.genTableOfContentFunc(pageNum, totPages)
}
for idx, page := range c.pages {
c.setActivePage(page)
if c.drawHeaderFunc != nil {
c.drawHeaderFunc(idx+1, totPages)
}
if c.drawFooterFunc != nil {
c.drawFooterFunc(idx+1, totPages)
}
}
c.finalized = true
}
// Move absolute position to x, y.
func (c *Creator) MoveTo(x, y float64) {
c.context.X = x
c.context.Y = y
}
// Move absolute position x.
func (c *Creator) MoveX(x float64) {
c.context.X = x
}
// Move absolute position x.
func (c *Creator) MoveY(y float64) {
c.context.Y = y
}
// Move relative position x.
func (c *Creator) MoveXRel(dx float64) {
c.context.X += dx
}
// Move relative position y.
func (c *Creator) MoveYRel(dy float64) {
c.context.Y += dy
}
// Draw the drawable widget to the document. This can span over 1 or more pages. Additional pages are added if
// the contents go over the current page.
func (c *Creator) Draw(d Drawable) error {
if c.getActivePage() == nil {
// Add a new page if none added already.
c.NewPage()
}
blocks, ctx, err := d.GeneratePageBlocks(c.context)
if err != nil {
return err
}
for idx, blk := range blocks {
if idx > 0 {
c.NewPage()
}
p := c.getActivePage()
err := blk.drawToPage(p)
if err != nil {
return err
}
}
// Inner elements can affect X, Y position and available height.
c.context.X = ctx.X
c.context.Y = ctx.Y
c.context.Height = ctx.pageHeight - ctx.Y - ctx.margins.bottom
return nil
}
// Write output of creator to file.
func (c *Creator) WriteToFile(outputPath string) error {
if !c.finalized {
c.finalize()
}
pdfWriter := model.NewPdfWriter()
for _, page := range c.pages {
err := pdfWriter.AddPage(page)
if err != nil {
common.Log.Error("Failed to add page: %s", err)
return err
}
}
fWrite, err := os.Create(outputPath)
if err != nil {
return err
}
defer fWrite.Close()
err = pdfWriter.Write(fWrite)
if err != nil {
return err
}
return nil
}

11
pdf/creator/doc.go Normal file
View File

@ -0,0 +1,11 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
//
// The creator is used for quickly generating pages and content with a simple interface.
// It is built on top of the model package to provide access to the most common
// operations such as creating, drawing, ...
//
package creator

63
pdf/creator/drawable.go Normal file
View File

@ -0,0 +1,63 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
// All widgets that can be used to draw with the creator need to implement the Drawable interface.
type Drawable interface {
// Sizing can either by occupy available space or a specified size.
GetSizingMechanism() Sizing
// Set absolute position of the widget on the page/template to be drawn onto.
SetPos(x, y float64)
// Set the left, right, top, bottom margins.
SetMargins(float64, float64, float64, float64)
// Get the left, right, top, bottom margins.
GetMargins() (float64, float64, float64, float64)
// Returns the width/height of the drawable.
Width() float64
Height() float64
// Draw onto blocks representing page contents. As the content can wrap over many pages, multiple
// templates are returned, one per page. The function also takes a draw context containing information
// where to draw (if relative positioning) and the available height to draw on accounting for margins etc.
GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error)
}
// Some drawables can be scaled. Mostly objects that fit on a single page. E.g. image, block.
type Scalable interface {
// Scale the drawable. Does not actually influence the object contents but rather how it is represented
// when drawn to the screen. I.e. a coordinate transform.
// Does change the Width and Height properties.
Scale(float64, float64)
ScaleToHeight(float64)
ScaleToWidth(float64)
}
// Some drawables can be rotated. Mostly vector graphics that fit on a single page. E.g. image, block.
type Rotatable interface {
// Set the rotation angle of the drawable in degrees.
// The rotation does not change the dimensions of the Drawable and is only applied at the time of drawing.
SetAngle(angleDeg float64)
}
// Drawing context. Continuously used when drawing the page contents. Keeps track of current X, Y position,
// available height as well as other page parameters such as margins and dimensions.
type drawContext struct {
// Current position. In a relative positioning mode, a drawable will be placed at these coordinates.
X, Y float64
// Context dimensions. Available width and height.
Width, Height float64
// Page margins...
margins margins
// Absolute page size, widths and height.
pageWidth float64
pageHeight float64
}

308
pdf/creator/image.go Normal file
View File

@ -0,0 +1,308 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"bytes"
"fmt"
goimage "image"
"io/ioutil"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/contentstream"
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model"
)
// The image type is used to draw an image onto PDF.
type image struct {
xobj *model.XObjectImage
// Rotation angle.
angle float64
// The dimensions of the image. As to be placed on the PDF.
width, height float64
// The original dimensions of the image (pixel based).
origWidth, origHeight float64
// Positioning: relative / absolute.
positioning positioning
// Absolute coordinates (when in absolute mode).
xPos float64
yPos float64
// Margins to be applied around the block when drawing on page.
margins margins
// Rotional origin. Default (0,0 - upper left corner of block).
rotOriginX, rotOriginY float64
}
// Create an image from image data.
func NewImage(data []byte) (*image, error) {
image := &image{}
imgReader := bytes.NewReader(data)
// Load the image with default handler.
img, err := model.ImageHandling.Read(imgReader)
if err != nil {
common.Log.Error("Error loading image: %s", err)
return nil, err
}
// Create the XObject image.
ximg, err := model.NewXObjectImageFromImage(img, nil, core.NewFlateEncoder())
if err != nil {
common.Log.Error("Failed to create xobject image: %s", err)
return nil, err
}
image.xobj = ximg
// Image original size in points = pixel size.
image.origWidth = float64(img.Width)
image.origHeight = float64(img.Height)
image.width = image.origWidth
image.height = image.origHeight
image.angle = 0
image.positioning = positionRelative
return image, nil
}
// Create image from a file.
func NewImageFromFile(path string) (*image, error) {
imgData, err := ioutil.ReadFile(path)
if err != nil {
return nil, err
}
img, err := NewImage(imgData)
if err != nil {
return nil, err
}
return img, nil
}
// Create image from a go image.Image datastructure.
func NewImageFromGoImage(goimg goimage.Image) (*image, error) {
image := &image{}
img, err := model.ImageHandling.NewImageFromGoImage(goimg)
if err != nil {
return nil, err
}
// Create the XObject image.
ximg, err := model.NewXObjectImageFromImage(img, nil, core.NewFlateEncoder())
if err != nil {
common.Log.Error("Failed to create xobject image: %s", err)
return nil, err
}
image.xobj = ximg
// Image original size in points = pixel size.
image.origWidth = float64(img.Width)
image.origHeight = float64(img.Height)
image.width = image.origWidth
image.height = image.origHeight
image.angle = 0
image.positioning = positionRelative
return image, nil
}
// Image sizing is always based on specified size. Returns SizingSpecifiedSize.
func (img *image) GetSizingMechanism() Sizing {
return SizingSpecifiedSize
}
// Get image document height.
func (img *image) Height() float64 {
return img.height
}
// Get image document width.
func (img *image) Width() float64 {
return img.width
}
// Set the image margins.
func (img *image) SetMargins(left, right, top, bottom float64) {
img.margins.left = left
img.margins.right = right
img.margins.top = top
img.margins.bottom = bottom
}
// Get image margins: left, right, top, bottom.
func (img *image) GetMargins() (float64, float64, float64, float64) {
return img.margins.left, img.margins.right, img.margins.top, img.margins.bottom
}
// Generate the page blocks.
func (img *image) GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error) {
blocks := []*block{}
origCtx := ctx
blk := NewBlock(ctx.pageWidth, ctx.pageHeight)
if img.positioning.isRelative() {
if img.height > ctx.Height {
// Goes out of the bounds. Write on a new template instead and create a new context at upper
// left corner.
blocks = append(blocks, blk)
blk = NewBlock(ctx.pageWidth, ctx.pageHeight)
newContext := ctx
newContext.Y = ctx.margins.top // + p.margins.top
newContext.X = ctx.margins.left + img.margins.left
newContext.Height = ctx.pageHeight - ctx.margins.top - ctx.margins.bottom - img.margins.bottom
newContext.Width = ctx.pageWidth - ctx.margins.left - ctx.margins.right - img.margins.left - img.margins.right
ctx = newContext
}
} else {
// Absolute.
ctx.X = img.xPos
ctx.Y = img.yPos
}
// Place the image on the template at position (x,y) based on the ctx.
ctx, err := drawImageOnBlock(blk, img, ctx)
if err != nil {
return nil, ctx, err
}
blocks = append(blocks, blk)
if img.positioning.isAbsolute() {
// Absolute drawing should not affect context.
ctx = origCtx
} else {
// XXX/TODO: Use projected height.
ctx.Y += img.height
}
return blocks, ctx, nil
}
// Set absolute position. Changes object positioning to absolute.
func (img *image) SetPos(x, y float64) {
img.positioning = positionAbsolute
img.xPos = x
img.yPos = y
}
// Scale image by a constant factor, both width and height.
func (img *image) Scale(xFactor, yFactor float64) {
img.width = xFactor * img.width
img.height = yFactor * img.height
}
// Scale image to a specified width w, maintaining the aspect ratio.
func (img *image) ScaleToWidth(w float64) {
ratio := img.height / img.width
img.width = w
img.height = w * ratio
}
// Scale image to a specified height h, maintaining the aspect ratio.
func (img *image) ScaleToHeight(h float64) {
ratio := img.width / img.height
img.height = h
img.width = h * ratio
}
// Set the image document width to specified w.
func (img *image) SetWidth(w float64) {
img.width = w
}
// Set the image document height to specified h.
func (img *image) SetHeight(h float64) {
img.height = h
}
// Set image rotation angle in degrees.
func (img *image) SetAngle(angle float64) {
img.angle = angle
}
// Draw the image onto the specified blk.
func drawImageOnBlock(blk *block, img *image, ctx drawContext) (drawContext, error) {
origCtx := ctx
// Find a free name for the image.
num := 1
imgName := core.PdfObjectName(fmt.Sprintf("Img%d", num))
for blk.resources.HasXObjectByName(imgName) {
num++
imgName = core.PdfObjectName(fmt.Sprintf("Img%d", num))
}
// Add to the page resources.
err := blk.resources.SetXObjectImageByName(imgName, img.xobj)
if err != nil {
return ctx, err
}
// Find an available GS name.
i := 0
gsName := core.PdfObjectName(fmt.Sprintf("GS%d", i))
for blk.resources.HasExtGState(gsName) {
i++
gsName = core.PdfObjectName(fmt.Sprintf("GS%d", i))
}
// Graphics state with normal blend mode.
gs0 := core.PdfObjectDictionary{}
gs0[core.PdfObjectName("BM")] = core.MakeName("Normal")
err = blk.resources.AddExtGState(gsName, &gs0)
if err != nil {
return ctx, err
}
xPos := ctx.X
yPos := ctx.pageHeight - ctx.Y - img.Height()
angle := img.angle
// Create content stream to add to the page contents.
contentCreator := contentstream.NewContentCreator()
contentCreator.Add_gs(gsName) // Set graphics state.
contentCreator.Translate(xPos, yPos)
if angle != 0 {
// Make the rotation about the upper left corner.
contentCreator.Translate(0, img.Height())
contentCreator.RotateDeg(angle)
contentCreator.Translate(0, -img.Height())
}
contentCreator.
Scale(img.Width(), img.Height()).
Add_Do(imgName) // Draw the image.
ops := contentCreator.Operations()
ops.WrapIfNeeded()
blk.addContents(ops)
ctx.Y += img.Height()
if img.positioning.isRelative() {
return ctx, nil
} else {
// Absolute positioning - return original context.
return origCtx, nil
}
}

496
pdf/creator/paragraph.go Normal file
View File

@ -0,0 +1,496 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"errors"
"fmt"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/contentstream"
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model"
"github.com/unidoc/unidoc/pdf/model/fonts"
"github.com/unidoc/unidoc/pdf/model/textencoding"
)
// XXX/TODO: Under consideration. Should allow paragraph to scale? Makes more sense to change font size.
// Alternatively can draw to a block and scale the block, if need to fit into a specific slot.
// A paragraph represents text drawn with a specified font and can wrap across lines and pages.
// By default occupies the available width in the drawing context.
type paragraph struct {
// The input utf-8 text as a string (series of runes).
text string
// The text encoder which can convert the text (as runes) into a series of glyphs and get character metrics.
encoder textencoding.TextEncoder
// The font to be used to draw the text.
textFont fonts.Font
// The font size (points).
fontSize float64
// The line relative height (default 1).
lineHeight float64
// The text color.
color model.PdfColorDeviceRGB
// Text alignment: Align left/right/center/justify.
alignment TextAlignment
// Wrapping properties.
enableWrap bool
wrapWidth float64
// Rotation angle (degrees).
angle float64
// Margins to be applied around the block when drawing on page.
margins margins
// Positioning: relative / absolute.
positioning positioning
// Absolute coordinates (when in absolute mode).
xPos float64
yPos float64
// Scaling factors (1 default).
scaleX, scaleY float64
// Text lines after wrapping to available width.
textLines []string
// Sizing mechanism. Defaults to occupy available width (SizingOccupyAvailableSpace).
sizing Sizing
}
// Create a new text block. Uses default parameters: Helvetica, WinAnsiEncoding and wrap enabled
// with a wrap width of 100 points.
func NewParagraph(text string) *paragraph {
p := &paragraph{}
p.text = text
p.textFont = fonts.NewFontHelvetica()
p.SetEncoder(textencoding.NewWinAnsiTextEncoder())
p.fontSize = 10
p.lineHeight = 1.0
p.enableWrap = true
p.SetColor(0, 0, 0)
p.alignment = TextAlignmentLeft
p.angle = 0
p.scaleX = 1
p.scaleY = 1
p.positioning = positionRelative
p.sizing = SizingOccupyAvailableSpace
return p
}
// Paragraph sizing is typically set to occupy available space (width).
func (p *paragraph) GetSizingMechanism() Sizing {
return p.sizing
}
func (p *paragraph) SetFont(font fonts.Font) {
p.textFont = font
}
func (p *paragraph) SetFontSize(fontSize float64) {
p.fontSize = fontSize
}
// Alignment of the text within the width provided.
func (p *paragraph) SetTextAlignment(align TextAlignment) {
p.alignment = align
}
// Set text encoding.
func (p *paragraph) SetEncoder(encoder textencoding.TextEncoder) {
p.encoder = encoder
// Sync with the text font too.
// XXX/FIXME: Keep in 1 place only.
p.textFont.SetEncoder(encoder)
}
func (p *paragraph) SetLineHeight(lineheight float64) {
p.lineHeight = lineheight
}
func (p *paragraph) SetText(text string) {
p.text = text
}
// Set line wrapping enabled flag.
func (p *paragraph) SetEnableWrap(enableWrap bool) {
p.enableWrap = enableWrap
}
// Set RGB color.
func (p *paragraph) SetColor(r, g, b float64) {
color := model.NewPdfColorDeviceRGB(r, g, b)
p.color = *color
}
// Drawable interface implementations.
// Set absolute positioning with specified coordinates.
func (p *paragraph) SetPos(x, y float64) {
p.positioning = positionAbsolute
p.xPos = x
p.yPos = y
}
// Set rotation angle.
func (p *paragraph) SetAngle(angle float64) {
p.angle = angle
}
// Set paragraph margins.
func (p *paragraph) SetMargins(left, right, top, bottom float64) {
p.margins.left = left
p.margins.right = right
p.margins.top = top
p.margins.bottom = bottom
}
// Get paragraph margins: left, right, top, bottom.
func (p *paragraph) GetMargins() (float64, float64, float64, float64) {
return p.margins.left, p.margins.right, p.margins.top, p.margins.bottom
}
// Set the paragraph width. Esentially the wrapping width, the width the text can extend to prior to wrapping.
func (p *paragraph) SetWidth(width float64) {
p.wrapWidth = width
p.wrapText()
}
func (p *paragraph) Width() float64 {
return p.wrapWidth
}
// The height is calculated based on the input text and how it is wrapped within the container.
// Height does not include margins.
func (p *paragraph) Height() float64 {
if p.textLines == nil || len(p.textLines) == 0 {
p.wrapText()
}
h := float64(len(p.textLines)) * p.lineHeight * p.fontSize
return h
}
func (p *paragraph) Scale(sx, sy float64) {
p.scaleX = sx
p.scaleY = sy
}
func (p *paragraph) ScaleToHeight(h float64) {
ratio := h / p.Height()
p.Scale(ratio, ratio)
}
func (p *paragraph) ScaleToWidth(w float64) {
ratio := w / p.Width()
p.Scale(ratio, ratio)
}
// Calculate the text width (if not wrapped).
func (p *paragraph) getTextWidth() float64 {
w := float64(0.0)
for _, rune := range p.text {
glyph, found := p.encoder.RuneToGlyphName(rune)
if !found {
common.Log.Debug("Error! Glyph not found for rune: %s\n", rune)
return -1 // XXX/FIXME: return error.
}
metrics, found := p.textFont.GetGlyphCharMetrics(glyph)
if !found {
common.Log.Debug("Glyph char metrics not found! %s\n", glyph)
return -1 // XXX/FIXME: return error.
}
w += p.fontSize * metrics.Wx
}
return w
}
// Simple algorithm to wrap the text into lines (greedy algorithm - fill the lines).
// XXX/TODO: Consider the Knuth/Plass algorithm or an alternative.
func (p *paragraph) wrapText() error {
if !p.enableWrap {
p.textLines = []string{p.encoder.Encode(p.text)}
return nil
}
line := []rune{}
lineWidth := float64(0.0)
p.textLines = []string{}
runes := []rune(p.text)
glyphs := []string{}
widths := []float64{}
for _, val := range runes {
glyph, found := p.encoder.RuneToGlyphName(val)
if !found {
common.Log.Debug("Error! Glyph not found for rune: %v\n", val)
return errors.New("Glyph not found for rune") // XXX/FIXME: return error.
}
metrics, found := p.textFont.GetGlyphCharMetrics(glyph)
if !found {
common.Log.Debug("Glyph char metrics not found! %s\n", glyph)
return errors.New("Glyph char metrics missing") // XXX/FIXME: return error.
}
w := p.fontSize * metrics.Wx
if lineWidth+w > p.wrapWidth*1000.0 {
// Goes out of bounds: Wrap.
// Breaks on the character.
// XXX/TODO: when goes outside: back up to next space, otherwise break on the character.
idx := -1
for i := len(glyphs) - 1; i >= 0; i-- {
if glyphs[i] == "space" {
idx = i
break
}
}
if idx > 0 {
p.textLines = append(p.textLines, string(line[0:idx+1]))
line = line[idx+1:]
line = append(line, val)
glyphs = glyphs[idx+1:]
glyphs = append(glyphs, glyph)
widths = widths[idx+1:]
widths = append(widths, w)
lineWidth = 0
for _, width := range widths {
lineWidth += width
}
} else {
p.textLines = append(p.textLines, string(line))
line = []rune{val}
lineWidth = w
widths = []float64{w}
glyphs = []string{glyph}
}
} else {
line = append(line, val)
lineWidth += w
glyphs = append(glyphs, glyph)
widths = append(widths, w)
}
}
if len(line) > 0 {
p.textLines = append(p.textLines, string(line))
}
return nil
}
// Generate the page blocks. Multiple blocks are generated if the contents wrap over
// multiple pages.
func (p *paragraph) GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error) {
origContext := ctx
blocks := []*block{}
blk := NewBlock(ctx.pageWidth, ctx.pageHeight)
if p.positioning.isRelative() {
// Account for paragraph margins.
ctx.X += p.margins.left
ctx.Y += p.margins.top
ctx.Width -= p.margins.left + p.margins.right
ctx.Height -= p.margins.top + p.margins.bottom
// Use available space.
p.SetWidth(ctx.Width)
if p.Height() > ctx.Height {
// Goes out of the bounds. Write on a new template instead and create a new context at upper
// left corner.
// XXX/TODO: Handle case when paragraph is larger than the page...
// Should be fine if we just break on the paragraph, i.e. splitting it up over 2+ pages
blocks = append(blocks, blk)
blk = NewBlock(ctx.pageWidth, ctx.pageHeight)
newContext := ctx
newContext.Y = ctx.margins.top // + p.margins.top
newContext.X = ctx.margins.left + p.margins.left
newContext.Height = ctx.pageHeight - ctx.margins.top - ctx.margins.bottom - p.margins.bottom
newContext.Width = ctx.pageWidth - ctx.margins.left - ctx.margins.right - p.margins.left - p.margins.right
ctx = newContext
}
} else {
// Absolute.
if p.wrapWidth == 0 {
// Use necessary space.
p.SetWidth(p.getTextWidth())
}
ctx.X = p.xPos
ctx.Y = p.yPos
}
// Place the paragraph on the template at position (x,y) based on the ctx.
ctx, err := drawParagraphOnBlock(blk, p, ctx)
if err != nil {
common.Log.Debug("ERROR: %v", err)
return nil, ctx, err
}
blocks = append(blocks, blk)
if p.positioning.isRelative() {
return blocks, ctx, nil
} else {
// Absolute: not changing the context.
return blocks, origContext, nil
}
}
// Draw block on specified location on page, adding to the content stream.
func drawParagraphOnBlock(blk *block, p *paragraph, ctx drawContext) (drawContext, error) {
// Find a free name for the font.
num := 1
fontName := core.PdfObjectName(fmt.Sprintf("Font%d", num))
for blk.resources.HasFontByName(fontName) {
num++
fontName = core.PdfObjectName(fmt.Sprintf("Font%d", num))
}
// Add to the page resources.
err := blk.resources.SetFontByName(fontName, p.textFont.ToPdfObject())
if err != nil {
return ctx, err
}
// Wrap the text into lines.
p.wrapText()
// Create the content stream.
cc := contentstream.NewContentCreator()
cc.Add_q()
yPos := ctx.pageHeight - ctx.Y - p.fontSize*p.lineHeight
cc.Translate(ctx.X, yPos)
if p.angle != 0 {
cc.RotateDeg(p.angle)
}
cc.Add_BT().
Add_rg(p.color.R(), p.color.G(), p.color.B()).
Add_Tf(fontName, p.fontSize).
Add_TL(p.fontSize * p.lineHeight)
for idx, line := range p.textLines {
if idx != 0 {
// Move to next line if not first.
cc.Add_Tstar()
}
runes := []rune(line)
// Get width of the line (excluding spaces).
w := float64(0)
spaces := 0
for _, runeVal := range runes {
glyph, found := p.encoder.RuneToGlyphName(runeVal)
if !found {
common.Log.Debug("Rune 0x%x not supported by text encoder", runeVal)
return ctx, errors.New("Unsupported rune in text encoding")
}
if glyph == "space" {
spaces++
continue
}
metrics, found := p.textFont.GetGlyphCharMetrics(glyph)
if !found {
common.Log.Debug("Unsupported glyph %s in font\n", glyph)
return ctx, errors.New("Unsupported text glyph")
}
w += p.fontSize * metrics.Wx
}
objs := []core.PdfObject{}
spaceMetrics, found := p.textFont.GetGlyphCharMetrics("space")
if !found {
return ctx, errors.New("The font does not have a space glyph")
}
spaceWidth := spaceMetrics.Wx
if p.alignment == TextAlignmentJustify {
if spaces > 0 && idx < len(p.textLines)-1 { // Not to justify last line.
spaceWidth = (p.wrapWidth*1000.0 - w) / float64(spaces) / p.fontSize
}
} else if p.alignment == TextAlignmentCenter {
// Start with a shift.
textWidth := w + float64(spaces)*spaceWidth*p.fontSize
shift := (p.wrapWidth*1000.0 - textWidth) / 2 / p.fontSize
objs = append(objs, core.MakeFloat(-shift))
} else if p.alignment == TextAlignmentRight {
textWidth := w + float64(spaces)*spaceWidth*p.fontSize
shift := (p.wrapWidth*1000.0 - textWidth) / p.fontSize
objs = append(objs, core.MakeFloat(-shift))
}
encStr := ""
for _, runeVal := range runes {
//creator.Add_Tj(core.PdfObjectString(tb.Encoder.Encode(line)))
glyph, found := p.encoder.RuneToGlyphName(runeVal)
if !found {
common.Log.Debug("Rune 0x%x not supported by text encoder", runeVal)
return ctx, errors.New("Unsupported rune in text encoding")
}
if glyph == "space" {
if !found {
common.Log.Debug("Unsupported glyph %s in font\n", glyph)
return ctx, errors.New("Unsupported text glyph")
}
if len(encStr) > 0 {
objs = append(objs, core.MakeString(encStr))
encStr = ""
}
objs = append(objs, core.MakeFloat(-spaceWidth))
} else {
encStr += string(p.encoder.Encode(string(runeVal)))
}
}
if len(encStr) > 0 {
objs = append(objs, core.MakeString(encStr))
}
cc.Add_TJ(objs...)
}
cc.Add_ET()
cc.Add_Q()
ops := cc.Operations()
ops.WrapIfNeeded()
blk.addContents(ops)
if p.positioning.isRelative() {
ctx.Y += p.Height() + p.margins.bottom
ctx.Height -= p.Height() + p.margins.bottom
}
return ctx, nil
}

148
pdf/creator/subchapter.go Normal file
View File

@ -0,0 +1,148 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"fmt"
"math"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/model/fonts"
)
// A subchapter simply represents a subchapter pertaining to a specific chapter. It can contain multiple
// drawables, just like a chapter.
type subchapter struct {
chapterNum int
subchapterNum int
title string
heading *paragraph
contents []Drawable
// Positioning: relative / absolute.
positioning positioning
// Absolute coordinates (when in absolute mode).
xPos, yPos float64
// Margins to be applied around the block when drawing on page.
margins margins
// Chapter sizing is set to occupy available space.
sizing Sizing
}
func (c *Creator) NewSubchapter(ch *chapter, title string) *subchapter {
subchap := &subchapter{}
ch.subchapters++
subchap.subchapterNum = ch.subchapters
subchap.chapterNum = ch.number
subchap.title = title
heading := fmt.Sprintf("%d.%d %s", subchap.chapterNum, subchap.subchapterNum, title)
p := NewParagraph(heading)
p.SetFontSize(14)
p.SetFont(fonts.NewFontHelvetica()) // bold?
subchap.heading = p
subchap.contents = []Drawable{}
// Chapter sizing is fixed to occupy available size.
subchap.sizing = SizingOccupyAvailableSpace
// Add subchapter to ch.
ch.Add(subchap)
return subchap
}
// Chapter sizing is fixed to occupy available space in the drawing context.
func (subchap *subchapter) GetSizingMechanism() Sizing {
return subchap.sizing
}
// Chapter height is a sum of the content heights.
func (subchap *subchapter) Height() float64 {
h := float64(0)
for _, d := range subchap.contents {
h += d.Height()
}
return h
}
// Chapter width is the maximum of the content widths.
func (subchap *subchapter) Width() float64 {
maxW := float64(0)
for _, d := range subchap.contents {
maxW = math.Max(maxW, d.Width())
}
return maxW
}
// Set absolute coordinates.
func (subchap *subchapter) SetPos(x, y float64) {
subchap.positioning = positionAbsolute
subchap.xPos = x
subchap.yPos = y
}
// Set chapter margins. Typically not needed as the page margins are used.
func (subchap *subchapter) SetMargins(left, right, top, bottom float64) {
subchap.margins.left = left
subchap.margins.right = right
subchap.margins.top = top
subchap.margins.bottom = bottom
}
// Get the subchapter margins: left, right, top, bototm.
func (subchap *subchapter) GetMargins() (float64, float64, float64, float64) {
return subchap.margins.left, subchap.margins.right, subchap.margins.top, subchap.margins.bottom
}
// Add a new drawable to the chapter.
func (subchap *subchapter) Add(d Drawable) {
switch d.(type) {
case *chapter, *subchapter:
common.Log.Debug("Error: Cannot add chapter or subchapter to a subchapter")
case *paragraph, *image, *block:
subchap.contents = append(subchap.contents, d)
default:
common.Log.Debug("Unsupported: %T", d)
}
}
// XXX/FIXME: Need to know actual page numbers to keep track for TOC.
// TODO: Add page number to context... ?
func (subchap *subchapter) GeneratePageBlocks(ctx drawContext) ([]*block, drawContext, error) {
ctx.Y += subchap.margins.top
blocks, ctx, err := subchap.heading.GeneratePageBlocks(ctx)
if err != nil {
return blocks, ctx, err
}
for _, d := range subchap.contents {
newBlocks, c, err := d.GeneratePageBlocks(ctx)
if err != nil {
return blocks, ctx, err
}
if len(newBlocks) < 1 {
continue
}
// The first block is always appended to the last..
blocks[len(blocks)-1].mergeBlocks(newBlocks[0])
blocks = append(blocks, newBlocks[1:]...)
ctx = c
}
return blocks, ctx, nil
}

51
pdf/creator/utils.go Normal file
View File

@ -0,0 +1,51 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"os"
"github.com/unidoc/unidoc/pdf/model"
)
func dimensionsMMtoPoints(dimensionsMM [2]float64, ppi float64) [2]float64 {
width := dimensionsMM[0] / 25.4 * ppi
height := dimensionsMM[1] / 25.4 * ppi
return [2]float64{width, height}
}
// Loads the template from path as a list of pages.
func loadPagesFromFile(path string) ([]*model.PdfPage, error) {
// Read the input pdf file.
f, err := os.Open(path)
if err != nil {
return nil, err
}
defer f.Close()
pdfReader, err := model.NewPdfReader(f)
if err != nil {
return nil, err
}
numPages, err := pdfReader.GetNumPages()
if err != nil {
return nil, err
}
// Load the pages.
pages := []*model.PdfPage{}
for i := 0; i < numPages; i++ {
page, err := pdfReader.GetPage(i + 1)
if err != nil {
return nil, err
}
pages = append(pages, page)
}
return pages, nil
}

691
pdf/model/font.go Normal file
View File

@ -0,0 +1,691 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package model
import (
"errors"
"io/ioutil"
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model/fonts"
"github.com/unidoc/unidoc/pdf/model/textencoding"
)
// The PdfFont structure represents an underlying font structure which can be of type:
// - Type0
// - Type1
// - TrueType
// etc.
type PdfFont struct {
context interface{} // The underlying font: Type0, Type1, Truetype, etc..
}
// Set the encoding for the underlying font.
func (font PdfFont) SetEncoder(encoder textencoding.TextEncoder) {
switch t := font.context.(type) {
case *pdfFontTrueType:
t.SetEncoder(encoder)
}
}
func (font PdfFont) GetGlyphCharMetrics(glyph string) (fonts.CharMetrics, bool) {
switch t := font.context.(type) {
case *pdfFontTrueType:
return t.GetGlyphCharMetrics(glyph)
}
return fonts.CharMetrics{}, false
}
func newPdfFontFromPdfObject(obj core.PdfObject) (*PdfFont, error) {
font := &PdfFont{}
dictObj := obj
if ind, is := obj.(*core.PdfIndirectObject); is {
dictObj = ind.PdfObject
}
d, ok := dictObj.(*core.PdfObjectDictionary)
if !ok {
common.Log.Debug("Font not given by a dictionary (%T)", obj)
return nil, errors.New("Type check error")
}
if obj, isDefined := (*d)["Type"]; isDefined {
oname, is := obj.(*core.PdfObjectName)
if !is || string(*oname) != "Font" {
common.Log.Debug("Incompatibility ERROR: Type (Required) defined but not Font name")
return nil, errors.New("Range check error")
}
} else {
common.Log.Debug("Incompatibility ERROR: Type (Required) missing")
return nil, errors.New("Required attribute missing")
}
obj, isDefined := (*d)["Subtype"]
if !isDefined {
common.Log.Debug("Incompatibility ERROR: Subtype (Required) missing")
return nil, errors.New("Required attribute missing")
}
subtype, ok := core.TraceToDirectObject(obj).(*core.PdfObjectName)
if !ok {
common.Log.Debug("Incompatibility ERROR: subtype not a name (%T) ", obj)
return nil, errors.New("Type check error")
}
switch subtype.String() {
case "TrueType":
truefont, err := newPdfFontTrueTypeFromPdfObject(obj)
if err != nil {
common.Log.Debug("Error loading truetype font: %v", truefont)
return nil, err
}
font.context = truefont
default:
common.Log.Debug("Unsupported font type: %s", subtype.String())
return nil, errors.New("Unsupported font type")
}
return font, nil
}
func (font PdfFont) ToPdfObject() core.PdfObject {
switch f := font.context.(type) {
case *pdfFontTrueType:
return f.ToPdfObject()
}
// If not supported, return null..
common.Log.Debug("Unsupported font (%T) - returning null object", font.context)
return core.MakeNull()
}
type pdfFontTrueType struct {
Encoder textencoding.TextEncoder
firstChar int
lastChar int
charWidths []float64
// Subtype shall be TrueType.
// Encoding is subject to limitations that are described in 9.6.6, "Character Encoding".
// BaseFont is derived differently.
BaseFont core.PdfObject
FirstChar core.PdfObject
LastChar core.PdfObject
Widths core.PdfObject
FontDescriptor *PdfFontDescriptor
Encoding core.PdfObject
ToUnicode core.PdfObject
container *core.PdfIndirectObject
}
func (font pdfFontTrueType) SetEncoder(encoder textencoding.TextEncoder) {
font.Encoder = encoder
}
func (font pdfFontTrueType) GetGlyphCharMetrics(glyph string) (fonts.CharMetrics, bool) {
metrics := fonts.CharMetrics{}
code, found := font.Encoder.GlyphNameToCharcode(glyph)
if !found {
return metrics, false
}
if int(code) < font.firstChar {
common.Log.Debug("Code lower than firstchar (%d < %d)", code, font.firstChar)
return metrics, false
}
if int(code) > font.lastChar {
common.Log.Debug("Code higher than lastchar (%d < %d)", code, font.lastChar)
return metrics, false
}
index := int(code) - font.firstChar
if index >= len(font.charWidths) {
common.Log.Debug("Code outside of widths range")
return metrics, false
}
width := font.charWidths[index]
metrics.Wx = width
return metrics, true
}
func newPdfFontTrueTypeFromPdfObject(obj core.PdfObject) (*pdfFontTrueType, error) {
font := &pdfFontTrueType{}
if ind, is := obj.(*core.PdfIndirectObject); is {
font.container = ind
obj = ind.PdfObject
}
d, ok := obj.(*core.PdfObjectDictionary)
if !ok {
common.Log.Debug("Font object invalid, not a dictionary (%T)", obj)
return nil, errors.New("Type check error")
}
if obj, isDefined := (*d)["Type"]; isDefined {
oname, is := obj.(*core.PdfObjectName)
if !is || oname.String() != "Font" {
common.Log.Debug("Incompatibility: Type defined but not Font")
}
}
if obj, isDefined := (*d)["Subtype"]; isDefined {
oname, is := obj.(*core.PdfObjectName)
if !is || oname.String() != "TrueType" {
common.Log.Debug("Incompatibility: Loading TrueType font but Subtype != TrueType")
}
}
if obj, isDefined := (*d)["BaseFont"]; isDefined {
font.BaseFont = obj
}
if obj, isDefined := (*d)["FirstChar"]; isDefined {
font.FirstChar = obj
intVal, ok := core.TraceToDirectObject(obj).(*core.PdfObjectInteger)
if !ok {
common.Log.Debug("Invalid FirstChar type (%T)", obj)
return nil, errors.New("Type check error")
}
font.firstChar = int(*intVal)
} else {
common.Log.Debug("ERROR: FirstChar attribute missing")
return nil, errors.New("Required attribute missing")
}
if obj, isDefined := (*d)["LastChar"]; isDefined {
font.LastChar = obj
intVal, ok := core.TraceToDirectObject(obj).(*core.PdfObjectInteger)
if !ok {
common.Log.Debug("Invalid LastChar type (%T)", obj)
return nil, errors.New("Type check error")
}
font.lastChar = int(*intVal)
} else {
common.Log.Debug("ERROR: FirstChar attribute missing")
return nil, errors.New("Required attribute missing")
}
font.charWidths = []float64{}
if obj, isDefined := (*d)["Widths"]; isDefined {
font.Widths = obj
arr, ok := core.TraceToDirectObject(obj).(*core.PdfObjectArray)
if !ok {
common.Log.Debug("Widths attribute != array (%T)", arr)
return nil, errors.New("Type check error")
}
widths, err := arr.ToFloat64Array()
if err != nil {
common.Log.Debug("Error converting widths to array")
return nil, err
}
if len(widths) != (font.lastChar - font.firstChar + 1) {
common.Log.Debug("Invalid widths length != %d (%d)", font.lastChar-font.firstChar+1, len(widths))
return nil, errors.New("Range check error")
}
font.charWidths = widths
} else {
common.Log.Debug("Widths missing from font")
return nil, errors.New("Required attribute missing")
}
if obj, isDefined := (*d)["FontDescriptor"]; isDefined {
descriptor, err := newPdfFontDescriptorFromPdfObject(obj)
if err != nil {
common.Log.Debug("Error loading font descriptor: %v", err)
return nil, err
}
font.FontDescriptor = descriptor
}
if obj, isDefined := (*d)["Encoding"]; isDefined {
font.Encoding = obj
}
if obj, isDefined := (*d)["ToUnicode"]; isDefined {
font.ToUnicode = obj
}
return font, nil
}
func (this *pdfFontTrueType) ToPdfObject() core.PdfObject {
if this.container == nil {
this.container = &core.PdfIndirectObject{}
}
d := &core.PdfObjectDictionary{}
this.container.PdfObject = d
d.Set("Type", core.MakeName("Font"))
d.Set("Subtype", core.MakeName("TrueType"))
if this.BaseFont != nil {
d.Set("BaseFont", this.BaseFont)
}
if this.FirstChar != nil {
d.Set("FirstChar", this.FirstChar)
}
if this.LastChar != nil {
d.Set("LastChar", this.LastChar)
}
if this.Widths != nil {
d.Set("Widths", this.Widths)
}
if this.FontDescriptor != nil {
d.Set("FontDescriptor", this.FontDescriptor.ToPdfObject())
}
if this.Encoding != nil {
d.Set("Encoding", this.Encoding)
}
if this.ToUnicode != nil {
d.Set("ToUnicode", this.ToUnicode)
}
return this.container
}
func NewPdfFontFromTTFFile(filePath string) (*PdfFont, error) {
ttf, err := fonts.TtfParse(filePath)
if err != nil {
common.Log.Debug("Error loading ttf font: %v", err)
return nil, err
}
truefont := &pdfFontTrueType{}
truefont.Encoder = textencoding.NewWinAnsiTextEncoder()
truefont.firstChar = 32
truefont.lastChar = 255
truefont.BaseFont = core.MakeName(ttf.PostScriptName)
truefont.FirstChar = core.MakeInteger(32)
truefont.LastChar = core.MakeInteger(255)
k := 1000.0 / float64(ttf.UnitsPerEm)
if len(ttf.Widths) <= 0 {
return nil, errors.New("Missing required attribute (Widths)")
}
missingWidth := k * float64(ttf.Widths[0])
vals := []float64{}
for charcode := 32; charcode <= 255; charcode++ {
runeVal, found := truefont.Encoder.CharcodeToRune(byte(charcode))
if !found {
common.Log.Debug("Rune not found (charcode: %d)", charcode)
vals = append(vals, missingWidth)
continue
}
pos, ok := ttf.Chars[uint16(runeVal)]
if !ok {
common.Log.Debug("Rune not in TTF Chars")
vals = append(vals, missingWidth)
continue
}
w := k * float64(ttf.Widths[pos])
vals = append(vals, w)
}
truefont.Widths = &core.PdfIndirectObject{PdfObject: core.MakeArrayFromFloats(vals)}
if len(vals) < (255 - 32 + 1) {
common.Log.Debug("Invalid length of widths, %d < %d", len(vals), 255-32+1)
return nil, errors.New("Range check error")
}
truefont.charWidths = vals[:255-32+1]
// Default.
// XXX/FIXME TODO: Only use the encoder object.
truefont.Encoding = core.MakeName("WinAnsiEncoding")
descriptor := &PdfFontDescriptor{}
descriptor.Ascent = core.MakeFloat(k * float64(ttf.TypoAscender))
descriptor.Descent = core.MakeFloat(k * float64(ttf.TypoDescender))
descriptor.CapHeight = core.MakeFloat(k * float64(ttf.CapHeight))
descriptor.FontBBox = core.MakeArrayFromFloats([]float64{k * float64(ttf.Xmin), k * float64(ttf.Ymin), k * float64(ttf.Xmax), k * float64(ttf.Ymax)})
descriptor.ItalicAngle = core.MakeFloat(float64(ttf.ItalicAngle))
descriptor.MissingWidth = core.MakeFloat(k * float64(ttf.Widths[0]))
ttfBytes, err := ioutil.ReadFile(filePath)
if err != nil {
common.Log.Debug("Unable to read file contents: %v", err)
return nil, err
}
// XXX/TODO: Encode the file...
stream, err := core.MakeStream(ttfBytes, core.NewFlateEncoder())
if err != nil {
common.Log.Debug("Unable to make stream: %v", err)
return nil, err
}
stream.PdfObjectDictionary.Set("Length1", core.MakeInteger(int64(len(ttfBytes))))
descriptor.FontFile2 = stream
if ttf.Bold {
descriptor.StemV = core.MakeInteger(120)
} else {
descriptor.StemV = core.MakeInteger(70)
}
// Flags.
flags := 1 << 5
if ttf.IsFixedPitch {
flags |= 1
}
if ttf.ItalicAngle != 0 {
flags |= 1 << 6
}
descriptor.Flags = core.MakeInteger(int64(flags))
// Build Font.
truefont.FontDescriptor = descriptor
font := &PdfFont{}
font.context = truefont
return font, nil
}
// Font descriptors specifies metrics and other attributes of a font.
type PdfFontDescriptor struct {
FontName core.PdfObject
FontFamily core.PdfObject
FontStretch core.PdfObject
FontWeight core.PdfObject
Flags core.PdfObject
FontBBox core.PdfObject
ItalicAngle core.PdfObject
Ascent core.PdfObject
Descent core.PdfObject
Leading core.PdfObject
CapHeight core.PdfObject
XHeight core.PdfObject
StemV core.PdfObject
StemH core.PdfObject
AvgWidth core.PdfObject
MaxWidth core.PdfObject
MissingWidth core.PdfObject
FontFile core.PdfObject
FontFile2 core.PdfObject
FontFile3 core.PdfObject
CharSet core.PdfObject
// Additional entries for CIDFonts
Style core.PdfObject
Lang core.PdfObject
FD core.PdfObject
CIDSet core.PdfObject
// Container.
container *core.PdfIndirectObject
}
// Load the font descriptor from a PdfObject. Can either be a *PdfIndirectObject or
// a *PdfObjectDictionary.
func newPdfFontDescriptorFromPdfObject(obj core.PdfObject) (*PdfFontDescriptor, error) {
descriptor := &PdfFontDescriptor{}
if ind, is := obj.(*core.PdfIndirectObject); is {
descriptor.container = ind
obj = ind.PdfObject
}
d, ok := obj.(*core.PdfObjectDictionary)
if !ok {
common.Log.Debug("FontDescriptor not given by a dictionary (%T)", obj)
return nil, errors.New("Type check error")
}
if obj, isDefined := (*d)["Type"]; isDefined {
oname, is := obj.(*core.PdfObjectName)
if !is || string(*oname) != "FontDescriptor" {
common.Log.Debug("Incompatibility: Font descriptor Type invalid (%T)", obj)
}
} else {
common.Log.Debug("Incompatibility: Type (Required) missing")
}
if obj, isDefined := (*d)["FontName"]; isDefined {
descriptor.FontName = obj
} else {
common.Log.Debug("Incompatibility: FontName (Required) missing")
}
if obj, isDefined := (*d)["FontFamily"]; isDefined {
descriptor.FontFamily = obj
}
if obj, isDefined := (*d)["FontStretch"]; isDefined {
descriptor.FontStretch = obj
}
if obj, isDefined := (*d)["FontWeight"]; isDefined {
descriptor.FontWeight = obj
}
if obj, isDefined := (*d)["Flags"]; isDefined {
descriptor.Flags = obj
}
if obj, isDefined := (*d)["FontBBox"]; isDefined {
descriptor.FontBBox = obj
}
if obj, isDefined := (*d)["ItalicAngle"]; isDefined {
descriptor.ItalicAngle = obj
}
if obj, isDefined := (*d)["Ascent"]; isDefined {
descriptor.Ascent = obj
}
if obj, isDefined := (*d)["Descent"]; isDefined {
descriptor.Descent = obj
}
if obj, isDefined := (*d)["Leading"]; isDefined {
descriptor.Leading = obj
}
if obj, isDefined := (*d)["CapHeight"]; isDefined {
descriptor.CapHeight = obj
}
if obj, isDefined := (*d)["XHeight"]; isDefined {
descriptor.XHeight = obj
}
if obj, isDefined := (*d)["StemV"]; isDefined {
descriptor.StemV = obj
}
if obj, isDefined := (*d)["StemH"]; isDefined {
descriptor.StemH = obj
}
if obj, isDefined := (*d)["AvgWidth"]; isDefined {
descriptor.AvgWidth = obj
}
if obj, isDefined := (*d)["MaxWidth"]; isDefined {
descriptor.MaxWidth = obj
}
if obj, isDefined := (*d)["MissingWidth"]; isDefined {
descriptor.MissingWidth = obj
}
if obj, isDefined := (*d)["FontFile"]; isDefined {
descriptor.FontFile = obj
}
if obj, isDefined := (*d)["FontFile2"]; isDefined {
descriptor.FontFile2 = obj
}
if obj, isDefined := (*d)["FontFile3"]; isDefined {
descriptor.FontFile3 = obj
}
if obj, isDefined := (*d)["CharSet"]; isDefined {
descriptor.CharSet = obj
}
if obj, isDefined := (*d)["Style"]; isDefined {
descriptor.Style = obj
}
if obj, isDefined := (*d)["Lang"]; isDefined {
descriptor.Lang = obj
}
if obj, isDefined := (*d)["FD"]; isDefined {
descriptor.FD = obj
}
if obj, isDefined := (*d)["CIDSet"]; isDefined {
descriptor.CIDSet = obj
}
return descriptor, nil
}
// Convert to a PDF dictionary inside an indirect object.
func (this *PdfFontDescriptor) ToPdfObject() core.PdfObject {
d := &core.PdfObjectDictionary{}
if this.container == nil {
this.container = &core.PdfIndirectObject{}
}
this.container.PdfObject = d
d.Set("Type", core.MakeName("FontDescriptor"))
if this.FontName != nil {
d.Set("FontName", this.FontName)
}
if this.FontFamily != nil {
d.Set("FontFamily", this.FontFamily)
}
if this.FontStretch != nil {
d.Set("FontStretch", this.FontStretch)
}
if this.FontWeight != nil {
d.Set("FontWeight", this.FontWeight)
}
if this.Flags != nil {
d.Set("Flags", this.Flags)
}
if this.FontBBox != nil {
d.Set("FontBBox", this.FontBBox)
}
if this.ItalicAngle != nil {
d.Set("ItalicAngle", this.ItalicAngle)
}
if this.Ascent != nil {
d.Set("Ascent", this.Ascent)
}
if this.Descent != nil {
d.Set("Descent", this.Descent)
}
if this.Leading != nil {
d.Set("Leading", this.Leading)
}
if this.CapHeight != nil {
d.Set("CapHeight", this.CapHeight)
}
if this.XHeight != nil {
d.Set("XHeight", this.XHeight)
}
if this.StemV != nil {
d.Set("StemV", this.StemV)
}
if this.StemH != nil {
d.Set("StemH", this.StemH)
}
if this.AvgWidth != nil {
d.Set("AvgWidth", this.AvgWidth)
}
if this.MaxWidth != nil {
d.Set("MaxWidth", this.MaxWidth)
}
if this.MissingWidth != nil {
d.Set("MissingWidth", this.MissingWidth)
}
if this.FontFile != nil {
d.Set("FontFile", this.FontFile)
}
if this.FontFile2 != nil {
d.Set("FontFile2", this.FontFile2)
}
if this.FontFile3 != nil {
d.Set("FontFile3", this.FontFile3)
}
if this.CharSet != nil {
d.Set("CharSet", this.CharSet)
}
if this.Style != nil {
d.Set("FontName", this.FontName)
}
if this.Lang != nil {
d.Set("Lang", this.Lang)
}
if this.FD != nil {
d.Set("FD", this.FD)
}
if this.CIDSet != nil {
d.Set("CIDSet", this.CIDSet)
}
return this.container
}

View File

@ -0,0 +1,342 @@
StartFontMetrics 4.1
Comment Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
Comment Creation Date: Mon Jun 23 16:28:00 1997
Comment UniqueID 43048
Comment VMusage 41139 52164
FontName Courier-Bold
FullName Courier Bold
FamilyName Courier
Weight Bold
ItalicAngle 0
IsFixedPitch true
CharacterSet ExtendedRoman
FontBBox -113 -250 749 801
UnderlinePosition -100
UnderlineThickness 50
Version 003.000
Notice Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
EncodingScheme AdobeStandardEncoding
CapHeight 562
XHeight 439
Ascender 629
Descender -157
StdHW 84
StdVW 106
StartCharMetrics 315
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
C 33 ; WX 600 ; N exclam ; B 202 -15 398 572 ;
C 34 ; WX 600 ; N quotedbl ; B 135 277 465 562 ;
C 35 ; WX 600 ; N numbersign ; B 56 -45 544 651 ;
C 36 ; WX 600 ; N dollar ; B 82 -126 519 666 ;
C 37 ; WX 600 ; N percent ; B 5 -15 595 616 ;
C 38 ; WX 600 ; N ampersand ; B 36 -15 546 543 ;
C 39 ; WX 600 ; N quoteright ; B 171 277 423 562 ;
C 40 ; WX 600 ; N parenleft ; B 219 -102 461 616 ;
C 41 ; WX 600 ; N parenright ; B 139 -102 381 616 ;
C 42 ; WX 600 ; N asterisk ; B 91 219 509 601 ;
C 43 ; WX 600 ; N plus ; B 71 39 529 478 ;
C 44 ; WX 600 ; N comma ; B 123 -111 393 174 ;
C 45 ; WX 600 ; N hyphen ; B 100 203 500 313 ;
C 46 ; WX 600 ; N period ; B 192 -15 408 171 ;
C 47 ; WX 600 ; N slash ; B 98 -77 502 626 ;
C 48 ; WX 600 ; N zero ; B 87 -15 513 616 ;
C 49 ; WX 600 ; N one ; B 81 0 539 616 ;
C 50 ; WX 600 ; N two ; B 61 0 499 616 ;
C 51 ; WX 600 ; N three ; B 63 -15 501 616 ;
C 52 ; WX 600 ; N four ; B 53 0 507 616 ;
C 53 ; WX 600 ; N five ; B 70 -15 521 601 ;
C 54 ; WX 600 ; N six ; B 90 -15 521 616 ;
C 55 ; WX 600 ; N seven ; B 55 0 494 601 ;
C 56 ; WX 600 ; N eight ; B 83 -15 517 616 ;
C 57 ; WX 600 ; N nine ; B 79 -15 510 616 ;
C 58 ; WX 600 ; N colon ; B 191 -15 407 425 ;
C 59 ; WX 600 ; N semicolon ; B 123 -111 408 425 ;
C 60 ; WX 600 ; N less ; B 66 15 523 501 ;
C 61 ; WX 600 ; N equal ; B 71 118 529 398 ;
C 62 ; WX 600 ; N greater ; B 77 15 534 501 ;
C 63 ; WX 600 ; N question ; B 98 -14 501 580 ;
C 64 ; WX 600 ; N at ; B 16 -15 584 616 ;
C 65 ; WX 600 ; N A ; B -9 0 609 562 ;
C 66 ; WX 600 ; N B ; B 30 0 573 562 ;
C 67 ; WX 600 ; N C ; B 22 -18 560 580 ;
C 68 ; WX 600 ; N D ; B 30 0 594 562 ;
C 69 ; WX 600 ; N E ; B 25 0 560 562 ;
C 70 ; WX 600 ; N F ; B 39 0 570 562 ;
C 71 ; WX 600 ; N G ; B 22 -18 594 580 ;
C 72 ; WX 600 ; N H ; B 20 0 580 562 ;
C 73 ; WX 600 ; N I ; B 77 0 523 562 ;
C 74 ; WX 600 ; N J ; B 37 -18 601 562 ;
C 75 ; WX 600 ; N K ; B 21 0 599 562 ;
C 76 ; WX 600 ; N L ; B 39 0 578 562 ;
C 77 ; WX 600 ; N M ; B -2 0 602 562 ;
C 78 ; WX 600 ; N N ; B 8 -12 610 562 ;
C 79 ; WX 600 ; N O ; B 22 -18 578 580 ;
C 80 ; WX 600 ; N P ; B 48 0 559 562 ;
C 81 ; WX 600 ; N Q ; B 32 -138 578 580 ;
C 82 ; WX 600 ; N R ; B 24 0 599 562 ;
C 83 ; WX 600 ; N S ; B 47 -22 553 582 ;
C 84 ; WX 600 ; N T ; B 21 0 579 562 ;
C 85 ; WX 600 ; N U ; B 4 -18 596 562 ;
C 86 ; WX 600 ; N V ; B -13 0 613 562 ;
C 87 ; WX 600 ; N W ; B -18 0 618 562 ;
C 88 ; WX 600 ; N X ; B 12 0 588 562 ;
C 89 ; WX 600 ; N Y ; B 12 0 589 562 ;
C 90 ; WX 600 ; N Z ; B 62 0 539 562 ;
C 91 ; WX 600 ; N bracketleft ; B 245 -102 475 616 ;
C 92 ; WX 600 ; N backslash ; B 99 -77 503 626 ;
C 93 ; WX 600 ; N bracketright ; B 125 -102 355 616 ;
C 94 ; WX 600 ; N asciicircum ; B 108 250 492 616 ;
C 95 ; WX 600 ; N underscore ; B 0 -125 600 -75 ;
C 96 ; WX 600 ; N quoteleft ; B 178 277 428 562 ;
C 97 ; WX 600 ; N a ; B 35 -15 570 454 ;
C 98 ; WX 600 ; N b ; B 0 -15 584 626 ;
C 99 ; WX 600 ; N c ; B 40 -15 545 459 ;
C 100 ; WX 600 ; N d ; B 20 -15 591 626 ;
C 101 ; WX 600 ; N e ; B 40 -15 563 454 ;
C 102 ; WX 600 ; N f ; B 83 0 547 626 ; L i fi ; L l fl ;
C 103 ; WX 600 ; N g ; B 30 -146 580 454 ;
C 104 ; WX 600 ; N h ; B 5 0 592 626 ;
C 105 ; WX 600 ; N i ; B 77 0 523 658 ;
C 106 ; WX 600 ; N j ; B 63 -146 440 658 ;
C 107 ; WX 600 ; N k ; B 20 0 585 626 ;
C 108 ; WX 600 ; N l ; B 77 0 523 626 ;
C 109 ; WX 600 ; N m ; B -22 0 626 454 ;
C 110 ; WX 600 ; N n ; B 18 0 592 454 ;
C 111 ; WX 600 ; N o ; B 30 -15 570 454 ;
C 112 ; WX 600 ; N p ; B -1 -142 570 454 ;
C 113 ; WX 600 ; N q ; B 20 -142 591 454 ;
C 114 ; WX 600 ; N r ; B 47 0 580 454 ;
C 115 ; WX 600 ; N s ; B 68 -17 535 459 ;
C 116 ; WX 600 ; N t ; B 47 -15 532 562 ;
C 117 ; WX 600 ; N u ; B -1 -15 569 439 ;
C 118 ; WX 600 ; N v ; B -1 0 601 439 ;
C 119 ; WX 600 ; N w ; B -18 0 618 439 ;
C 120 ; WX 600 ; N x ; B 6 0 594 439 ;
C 121 ; WX 600 ; N y ; B -4 -142 601 439 ;
C 122 ; WX 600 ; N z ; B 81 0 520 439 ;
C 123 ; WX 600 ; N braceleft ; B 160 -102 464 616 ;
C 124 ; WX 600 ; N bar ; B 255 -250 345 750 ;
C 125 ; WX 600 ; N braceright ; B 136 -102 440 616 ;
C 126 ; WX 600 ; N asciitilde ; B 71 153 530 356 ;
C 161 ; WX 600 ; N exclamdown ; B 202 -146 398 449 ;
C 162 ; WX 600 ; N cent ; B 66 -49 518 614 ;
C 163 ; WX 600 ; N sterling ; B 72 -28 558 611 ;
C 164 ; WX 600 ; N fraction ; B 25 -60 576 661 ;
C 165 ; WX 600 ; N yen ; B 10 0 590 562 ;
C 166 ; WX 600 ; N florin ; B -30 -131 572 616 ;
C 167 ; WX 600 ; N section ; B 83 -70 517 580 ;
C 168 ; WX 600 ; N currency ; B 54 49 546 517 ;
C 169 ; WX 600 ; N quotesingle ; B 227 277 373 562 ;
C 170 ; WX 600 ; N quotedblleft ; B 71 277 535 562 ;
C 171 ; WX 600 ; N guillemotleft ; B 8 70 553 446 ;
C 172 ; WX 600 ; N guilsinglleft ; B 141 70 459 446 ;
C 173 ; WX 600 ; N guilsinglright ; B 141 70 459 446 ;
C 174 ; WX 600 ; N fi ; B 12 0 593 626 ;
C 175 ; WX 600 ; N fl ; B 12 0 593 626 ;
C 177 ; WX 600 ; N endash ; B 65 203 535 313 ;
C 178 ; WX 600 ; N dagger ; B 106 -70 494 580 ;
C 179 ; WX 600 ; N daggerdbl ; B 106 -70 494 580 ;
C 180 ; WX 600 ; N periodcentered ; B 196 165 404 351 ;
C 182 ; WX 600 ; N paragraph ; B 6 -70 576 580 ;
C 183 ; WX 600 ; N bullet ; B 140 132 460 430 ;
C 184 ; WX 600 ; N quotesinglbase ; B 175 -142 427 143 ;
C 185 ; WX 600 ; N quotedblbase ; B 65 -142 529 143 ;
C 186 ; WX 600 ; N quotedblright ; B 61 277 525 562 ;
C 187 ; WX 600 ; N guillemotright ; B 47 70 592 446 ;
C 188 ; WX 600 ; N ellipsis ; B 26 -15 574 116 ;
C 189 ; WX 600 ; N perthousand ; B -113 -15 713 616 ;
C 191 ; WX 600 ; N questiondown ; B 99 -146 502 449 ;
C 193 ; WX 600 ; N grave ; B 132 508 395 661 ;
C 194 ; WX 600 ; N acute ; B 205 508 468 661 ;
C 195 ; WX 600 ; N circumflex ; B 103 483 497 657 ;
C 196 ; WX 600 ; N tilde ; B 89 493 512 636 ;
C 197 ; WX 600 ; N macron ; B 88 505 512 585 ;
C 198 ; WX 600 ; N breve ; B 83 468 517 631 ;
C 199 ; WX 600 ; N dotaccent ; B 230 498 370 638 ;
C 200 ; WX 600 ; N dieresis ; B 128 498 472 638 ;
C 202 ; WX 600 ; N ring ; B 198 481 402 678 ;
C 203 ; WX 600 ; N cedilla ; B 205 -206 387 0 ;
C 205 ; WX 600 ; N hungarumlaut ; B 68 488 588 661 ;
C 206 ; WX 600 ; N ogonek ; B 169 -199 400 0 ;
C 207 ; WX 600 ; N caron ; B 103 493 497 667 ;
C 208 ; WX 600 ; N emdash ; B -10 203 610 313 ;
C 225 ; WX 600 ; N AE ; B -29 0 602 562 ;
C 227 ; WX 600 ; N ordfeminine ; B 147 196 453 580 ;
C 232 ; WX 600 ; N Lslash ; B 39 0 578 562 ;
C 233 ; WX 600 ; N Oslash ; B 22 -22 578 584 ;
C 234 ; WX 600 ; N OE ; B -25 0 595 562 ;
C 235 ; WX 600 ; N ordmasculine ; B 147 196 453 580 ;
C 241 ; WX 600 ; N ae ; B -4 -15 601 454 ;
C 245 ; WX 600 ; N dotlessi ; B 77 0 523 439 ;
C 248 ; WX 600 ; N lslash ; B 77 0 523 626 ;
C 249 ; WX 600 ; N oslash ; B 30 -24 570 463 ;
C 250 ; WX 600 ; N oe ; B -18 -15 611 454 ;
C 251 ; WX 600 ; N germandbls ; B 22 -15 596 626 ;
C -1 ; WX 600 ; N Idieresis ; B 77 0 523 761 ;
C -1 ; WX 600 ; N eacute ; B 40 -15 563 661 ;
C -1 ; WX 600 ; N abreve ; B 35 -15 570 661 ;
C -1 ; WX 600 ; N uhungarumlaut ; B -1 -15 628 661 ;
C -1 ; WX 600 ; N ecaron ; B 40 -15 563 667 ;
C -1 ; WX 600 ; N Ydieresis ; B 12 0 589 761 ;
C -1 ; WX 600 ; N divide ; B 71 16 529 500 ;
C -1 ; WX 600 ; N Yacute ; B 12 0 589 784 ;
C -1 ; WX 600 ; N Acircumflex ; B -9 0 609 780 ;
C -1 ; WX 600 ; N aacute ; B 35 -15 570 661 ;
C -1 ; WX 600 ; N Ucircumflex ; B 4 -18 596 780 ;
C -1 ; WX 600 ; N yacute ; B -4 -142 601 661 ;
C -1 ; WX 600 ; N scommaaccent ; B 68 -250 535 459 ;
C -1 ; WX 600 ; N ecircumflex ; B 40 -15 563 657 ;
C -1 ; WX 600 ; N Uring ; B 4 -18 596 801 ;
C -1 ; WX 600 ; N Udieresis ; B 4 -18 596 761 ;
C -1 ; WX 600 ; N aogonek ; B 35 -199 586 454 ;
C -1 ; WX 600 ; N Uacute ; B 4 -18 596 784 ;
C -1 ; WX 600 ; N uogonek ; B -1 -199 585 439 ;
C -1 ; WX 600 ; N Edieresis ; B 25 0 560 761 ;
C -1 ; WX 600 ; N Dcroat ; B 30 0 594 562 ;
C -1 ; WX 600 ; N commaaccent ; B 205 -250 397 -57 ;
C -1 ; WX 600 ; N copyright ; B 0 -18 600 580 ;
C -1 ; WX 600 ; N Emacron ; B 25 0 560 708 ;
C -1 ; WX 600 ; N ccaron ; B 40 -15 545 667 ;
C -1 ; WX 600 ; N aring ; B 35 -15 570 678 ;
C -1 ; WX 600 ; N Ncommaaccent ; B 8 -250 610 562 ;
C -1 ; WX 600 ; N lacute ; B 77 0 523 801 ;
C -1 ; WX 600 ; N agrave ; B 35 -15 570 661 ;
C -1 ; WX 600 ; N Tcommaaccent ; B 21 -250 579 562 ;
C -1 ; WX 600 ; N Cacute ; B 22 -18 560 784 ;
C -1 ; WX 600 ; N atilde ; B 35 -15 570 636 ;
C -1 ; WX 600 ; N Edotaccent ; B 25 0 560 761 ;
C -1 ; WX 600 ; N scaron ; B 68 -17 535 667 ;
C -1 ; WX 600 ; N scedilla ; B 68 -206 535 459 ;
C -1 ; WX 600 ; N iacute ; B 77 0 523 661 ;
C -1 ; WX 600 ; N lozenge ; B 66 0 534 740 ;
C -1 ; WX 600 ; N Rcaron ; B 24 0 599 790 ;
C -1 ; WX 600 ; N Gcommaaccent ; B 22 -250 594 580 ;
C -1 ; WX 600 ; N ucircumflex ; B -1 -15 569 657 ;
C -1 ; WX 600 ; N acircumflex ; B 35 -15 570 657 ;
C -1 ; WX 600 ; N Amacron ; B -9 0 609 708 ;
C -1 ; WX 600 ; N rcaron ; B 47 0 580 667 ;
C -1 ; WX 600 ; N ccedilla ; B 40 -206 545 459 ;
C -1 ; WX 600 ; N Zdotaccent ; B 62 0 539 761 ;
C -1 ; WX 600 ; N Thorn ; B 48 0 557 562 ;
C -1 ; WX 600 ; N Omacron ; B 22 -18 578 708 ;
C -1 ; WX 600 ; N Racute ; B 24 0 599 784 ;
C -1 ; WX 600 ; N Sacute ; B 47 -22 553 784 ;
C -1 ; WX 600 ; N dcaron ; B 20 -15 727 626 ;
C -1 ; WX 600 ; N Umacron ; B 4 -18 596 708 ;
C -1 ; WX 600 ; N uring ; B -1 -15 569 678 ;
C -1 ; WX 600 ; N threesuperior ; B 138 222 433 616 ;
C -1 ; WX 600 ; N Ograve ; B 22 -18 578 784 ;
C -1 ; WX 600 ; N Agrave ; B -9 0 609 784 ;
C -1 ; WX 600 ; N Abreve ; B -9 0 609 784 ;
C -1 ; WX 600 ; N multiply ; B 81 39 520 478 ;
C -1 ; WX 600 ; N uacute ; B -1 -15 569 661 ;
C -1 ; WX 600 ; N Tcaron ; B 21 0 579 790 ;
C -1 ; WX 600 ; N partialdiff ; B 63 -38 537 728 ;
C -1 ; WX 600 ; N ydieresis ; B -4 -142 601 638 ;
C -1 ; WX 600 ; N Nacute ; B 8 -12 610 784 ;
C -1 ; WX 600 ; N icircumflex ; B 73 0 523 657 ;
C -1 ; WX 600 ; N Ecircumflex ; B 25 0 560 780 ;
C -1 ; WX 600 ; N adieresis ; B 35 -15 570 638 ;
C -1 ; WX 600 ; N edieresis ; B 40 -15 563 638 ;
C -1 ; WX 600 ; N cacute ; B 40 -15 545 661 ;
C -1 ; WX 600 ; N nacute ; B 18 0 592 661 ;
C -1 ; WX 600 ; N umacron ; B -1 -15 569 585 ;
C -1 ; WX 600 ; N Ncaron ; B 8 -12 610 790 ;
C -1 ; WX 600 ; N Iacute ; B 77 0 523 784 ;
C -1 ; WX 600 ; N plusminus ; B 71 24 529 515 ;
C -1 ; WX 600 ; N brokenbar ; B 255 -175 345 675 ;
C -1 ; WX 600 ; N registered ; B 0 -18 600 580 ;
C -1 ; WX 600 ; N Gbreve ; B 22 -18 594 784 ;
C -1 ; WX 600 ; N Idotaccent ; B 77 0 523 761 ;
C -1 ; WX 600 ; N summation ; B 15 -10 586 706 ;
C -1 ; WX 600 ; N Egrave ; B 25 0 560 784 ;
C -1 ; WX 600 ; N racute ; B 47 0 580 661 ;
C -1 ; WX 600 ; N omacron ; B 30 -15 570 585 ;
C -1 ; WX 600 ; N Zacute ; B 62 0 539 784 ;
C -1 ; WX 600 ; N Zcaron ; B 62 0 539 790 ;
C -1 ; WX 600 ; N greaterequal ; B 26 0 523 696 ;
C -1 ; WX 600 ; N Eth ; B 30 0 594 562 ;
C -1 ; WX 600 ; N Ccedilla ; B 22 -206 560 580 ;
C -1 ; WX 600 ; N lcommaaccent ; B 77 -250 523 626 ;
C -1 ; WX 600 ; N tcaron ; B 47 -15 532 703 ;
C -1 ; WX 600 ; N eogonek ; B 40 -199 563 454 ;
C -1 ; WX 600 ; N Uogonek ; B 4 -199 596 562 ;
C -1 ; WX 600 ; N Aacute ; B -9 0 609 784 ;
C -1 ; WX 600 ; N Adieresis ; B -9 0 609 761 ;
C -1 ; WX 600 ; N egrave ; B 40 -15 563 661 ;
C -1 ; WX 600 ; N zacute ; B 81 0 520 661 ;
C -1 ; WX 600 ; N iogonek ; B 77 -199 523 658 ;
C -1 ; WX 600 ; N Oacute ; B 22 -18 578 784 ;
C -1 ; WX 600 ; N oacute ; B 30 -15 570 661 ;
C -1 ; WX 600 ; N amacron ; B 35 -15 570 585 ;
C -1 ; WX 600 ; N sacute ; B 68 -17 535 661 ;
C -1 ; WX 600 ; N idieresis ; B 77 0 523 618 ;
C -1 ; WX 600 ; N Ocircumflex ; B 22 -18 578 780 ;
C -1 ; WX 600 ; N Ugrave ; B 4 -18 596 784 ;
C -1 ; WX 600 ; N Delta ; B 6 0 594 688 ;
C -1 ; WX 600 ; N thorn ; B -14 -142 570 626 ;
C -1 ; WX 600 ; N twosuperior ; B 143 230 436 616 ;
C -1 ; WX 600 ; N Odieresis ; B 22 -18 578 761 ;
C -1 ; WX 600 ; N mu ; B -1 -142 569 439 ;
C -1 ; WX 600 ; N igrave ; B 77 0 523 661 ;
C -1 ; WX 600 ; N ohungarumlaut ; B 30 -15 668 661 ;
C -1 ; WX 600 ; N Eogonek ; B 25 -199 576 562 ;
C -1 ; WX 600 ; N dcroat ; B 20 -15 591 626 ;
C -1 ; WX 600 ; N threequarters ; B -47 -60 648 661 ;
C -1 ; WX 600 ; N Scedilla ; B 47 -206 553 582 ;
C -1 ; WX 600 ; N lcaron ; B 77 0 597 626 ;
C -1 ; WX 600 ; N Kcommaaccent ; B 21 -250 599 562 ;
C -1 ; WX 600 ; N Lacute ; B 39 0 578 784 ;
C -1 ; WX 600 ; N trademark ; B -9 230 749 562 ;
C -1 ; WX 600 ; N edotaccent ; B 40 -15 563 638 ;
C -1 ; WX 600 ; N Igrave ; B 77 0 523 784 ;
C -1 ; WX 600 ; N Imacron ; B 77 0 523 708 ;
C -1 ; WX 600 ; N Lcaron ; B 39 0 637 562 ;
C -1 ; WX 600 ; N onehalf ; B -47 -60 648 661 ;
C -1 ; WX 600 ; N lessequal ; B 26 0 523 696 ;
C -1 ; WX 600 ; N ocircumflex ; B 30 -15 570 657 ;
C -1 ; WX 600 ; N ntilde ; B 18 0 592 636 ;
C -1 ; WX 600 ; N Uhungarumlaut ; B 4 -18 638 784 ;
C -1 ; WX 600 ; N Eacute ; B 25 0 560 784 ;
C -1 ; WX 600 ; N emacron ; B 40 -15 563 585 ;
C -1 ; WX 600 ; N gbreve ; B 30 -146 580 661 ;
C -1 ; WX 600 ; N onequarter ; B -56 -60 656 661 ;
C -1 ; WX 600 ; N Scaron ; B 47 -22 553 790 ;
C -1 ; WX 600 ; N Scommaaccent ; B 47 -250 553 582 ;
C -1 ; WX 600 ; N Ohungarumlaut ; B 22 -18 628 784 ;
C -1 ; WX 600 ; N degree ; B 86 243 474 616 ;
C -1 ; WX 600 ; N ograve ; B 30 -15 570 661 ;
C -1 ; WX 600 ; N Ccaron ; B 22 -18 560 790 ;
C -1 ; WX 600 ; N ugrave ; B -1 -15 569 661 ;
C -1 ; WX 600 ; N radical ; B -19 -104 473 778 ;
C -1 ; WX 600 ; N Dcaron ; B 30 0 594 790 ;
C -1 ; WX 600 ; N rcommaaccent ; B 47 -250 580 454 ;
C -1 ; WX 600 ; N Ntilde ; B 8 -12 610 759 ;
C -1 ; WX 600 ; N otilde ; B 30 -15 570 636 ;
C -1 ; WX 600 ; N Rcommaaccent ; B 24 -250 599 562 ;
C -1 ; WX 600 ; N Lcommaaccent ; B 39 -250 578 562 ;
C -1 ; WX 600 ; N Atilde ; B -9 0 609 759 ;
C -1 ; WX 600 ; N Aogonek ; B -9 -199 625 562 ;
C -1 ; WX 600 ; N Aring ; B -9 0 609 801 ;
C -1 ; WX 600 ; N Otilde ; B 22 -18 578 759 ;
C -1 ; WX 600 ; N zdotaccent ; B 81 0 520 638 ;
C -1 ; WX 600 ; N Ecaron ; B 25 0 560 790 ;
C -1 ; WX 600 ; N Iogonek ; B 77 -199 523 562 ;
C -1 ; WX 600 ; N kcommaaccent ; B 20 -250 585 626 ;
C -1 ; WX 600 ; N minus ; B 71 203 529 313 ;
C -1 ; WX 600 ; N Icircumflex ; B 77 0 523 780 ;
C -1 ; WX 600 ; N ncaron ; B 18 0 592 667 ;
C -1 ; WX 600 ; N tcommaaccent ; B 47 -250 532 562 ;
C -1 ; WX 600 ; N logicalnot ; B 71 103 529 413 ;
C -1 ; WX 600 ; N odieresis ; B 30 -15 570 638 ;
C -1 ; WX 600 ; N udieresis ; B -1 -15 569 638 ;
C -1 ; WX 600 ; N notequal ; B 12 -47 537 563 ;
C -1 ; WX 600 ; N gcommaaccent ; B 30 -146 580 714 ;
C -1 ; WX 600 ; N eth ; B 58 -27 543 626 ;
C -1 ; WX 600 ; N zcaron ; B 81 0 520 667 ;
C -1 ; WX 600 ; N ncommaaccent ; B 18 -250 592 454 ;
C -1 ; WX 600 ; N onesuperior ; B 153 230 447 616 ;
C -1 ; WX 600 ; N imacron ; B 77 0 523 585 ;
C -1 ; WX 600 ; N Euro ; B 0 0 0 0 ;
EndCharMetrics
EndFontMetrics

View File

@ -0,0 +1,342 @@
StartFontMetrics 4.1
Comment Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
Comment Creation Date: Mon Jun 23 16:28:46 1997
Comment UniqueID 43049
Comment VMusage 17529 79244
FontName Courier-BoldOblique
FullName Courier Bold Oblique
FamilyName Courier
Weight Bold
ItalicAngle -12
IsFixedPitch true
CharacterSet ExtendedRoman
FontBBox -57 -250 869 801
UnderlinePosition -100
UnderlineThickness 50
Version 003.000
Notice Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
EncodingScheme AdobeStandardEncoding
CapHeight 562
XHeight 439
Ascender 629
Descender -157
StdHW 84
StdVW 106
StartCharMetrics 315
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
C 33 ; WX 600 ; N exclam ; B 215 -15 495 572 ;
C 34 ; WX 600 ; N quotedbl ; B 211 277 585 562 ;
C 35 ; WX 600 ; N numbersign ; B 88 -45 641 651 ;
C 36 ; WX 600 ; N dollar ; B 87 -126 630 666 ;
C 37 ; WX 600 ; N percent ; B 101 -15 625 616 ;
C 38 ; WX 600 ; N ampersand ; B 61 -15 595 543 ;
C 39 ; WX 600 ; N quoteright ; B 229 277 543 562 ;
C 40 ; WX 600 ; N parenleft ; B 265 -102 592 616 ;
C 41 ; WX 600 ; N parenright ; B 117 -102 444 616 ;
C 42 ; WX 600 ; N asterisk ; B 179 219 598 601 ;
C 43 ; WX 600 ; N plus ; B 114 39 596 478 ;
C 44 ; WX 600 ; N comma ; B 99 -111 430 174 ;
C 45 ; WX 600 ; N hyphen ; B 143 203 567 313 ;
C 46 ; WX 600 ; N period ; B 206 -15 427 171 ;
C 47 ; WX 600 ; N slash ; B 90 -77 626 626 ;
C 48 ; WX 600 ; N zero ; B 135 -15 593 616 ;
C 49 ; WX 600 ; N one ; B 93 0 562 616 ;
C 50 ; WX 600 ; N two ; B 61 0 594 616 ;
C 51 ; WX 600 ; N three ; B 71 -15 571 616 ;
C 52 ; WX 600 ; N four ; B 81 0 559 616 ;
C 53 ; WX 600 ; N five ; B 77 -15 621 601 ;
C 54 ; WX 600 ; N six ; B 135 -15 652 616 ;
C 55 ; WX 600 ; N seven ; B 147 0 622 601 ;
C 56 ; WX 600 ; N eight ; B 115 -15 604 616 ;
C 57 ; WX 600 ; N nine ; B 75 -15 592 616 ;
C 58 ; WX 600 ; N colon ; B 205 -15 480 425 ;
C 59 ; WX 600 ; N semicolon ; B 99 -111 481 425 ;
C 60 ; WX 600 ; N less ; B 120 15 613 501 ;
C 61 ; WX 600 ; N equal ; B 96 118 614 398 ;
C 62 ; WX 600 ; N greater ; B 97 15 589 501 ;
C 63 ; WX 600 ; N question ; B 183 -14 592 580 ;
C 64 ; WX 600 ; N at ; B 65 -15 642 616 ;
C 65 ; WX 600 ; N A ; B -9 0 632 562 ;
C 66 ; WX 600 ; N B ; B 30 0 630 562 ;
C 67 ; WX 600 ; N C ; B 74 -18 675 580 ;
C 68 ; WX 600 ; N D ; B 30 0 664 562 ;
C 69 ; WX 600 ; N E ; B 25 0 670 562 ;
C 70 ; WX 600 ; N F ; B 39 0 684 562 ;
C 71 ; WX 600 ; N G ; B 74 -18 675 580 ;
C 72 ; WX 600 ; N H ; B 20 0 700 562 ;
C 73 ; WX 600 ; N I ; B 77 0 643 562 ;
C 74 ; WX 600 ; N J ; B 58 -18 721 562 ;
C 75 ; WX 600 ; N K ; B 21 0 692 562 ;
C 76 ; WX 600 ; N L ; B 39 0 636 562 ;
C 77 ; WX 600 ; N M ; B -2 0 722 562 ;
C 78 ; WX 600 ; N N ; B 8 -12 730 562 ;
C 79 ; WX 600 ; N O ; B 74 -18 645 580 ;
C 80 ; WX 600 ; N P ; B 48 0 643 562 ;
C 81 ; WX 600 ; N Q ; B 83 -138 636 580 ;
C 82 ; WX 600 ; N R ; B 24 0 617 562 ;
C 83 ; WX 600 ; N S ; B 54 -22 673 582 ;
C 84 ; WX 600 ; N T ; B 86 0 679 562 ;
C 85 ; WX 600 ; N U ; B 101 -18 716 562 ;
C 86 ; WX 600 ; N V ; B 84 0 733 562 ;
C 87 ; WX 600 ; N W ; B 79 0 738 562 ;
C 88 ; WX 600 ; N X ; B 12 0 690 562 ;
C 89 ; WX 600 ; N Y ; B 109 0 709 562 ;
C 90 ; WX 600 ; N Z ; B 62 0 637 562 ;
C 91 ; WX 600 ; N bracketleft ; B 223 -102 606 616 ;
C 92 ; WX 600 ; N backslash ; B 222 -77 496 626 ;
C 93 ; WX 600 ; N bracketright ; B 103 -102 486 616 ;
C 94 ; WX 600 ; N asciicircum ; B 171 250 556 616 ;
C 95 ; WX 600 ; N underscore ; B -27 -125 585 -75 ;
C 96 ; WX 600 ; N quoteleft ; B 297 277 487 562 ;
C 97 ; WX 600 ; N a ; B 61 -15 593 454 ;
C 98 ; WX 600 ; N b ; B 13 -15 636 626 ;
C 99 ; WX 600 ; N c ; B 81 -15 631 459 ;
C 100 ; WX 600 ; N d ; B 60 -15 645 626 ;
C 101 ; WX 600 ; N e ; B 81 -15 605 454 ;
C 102 ; WX 600 ; N f ; B 83 0 677 626 ; L i fi ; L l fl ;
C 103 ; WX 600 ; N g ; B 40 -146 674 454 ;
C 104 ; WX 600 ; N h ; B 18 0 615 626 ;
C 105 ; WX 600 ; N i ; B 77 0 546 658 ;
C 106 ; WX 600 ; N j ; B 36 -146 580 658 ;
C 107 ; WX 600 ; N k ; B 33 0 643 626 ;
C 108 ; WX 600 ; N l ; B 77 0 546 626 ;
C 109 ; WX 600 ; N m ; B -22 0 649 454 ;
C 110 ; WX 600 ; N n ; B 18 0 615 454 ;
C 111 ; WX 600 ; N o ; B 71 -15 622 454 ;
C 112 ; WX 600 ; N p ; B -32 -142 622 454 ;
C 113 ; WX 600 ; N q ; B 60 -142 685 454 ;
C 114 ; WX 600 ; N r ; B 47 0 655 454 ;
C 115 ; WX 600 ; N s ; B 66 -17 608 459 ;
C 116 ; WX 600 ; N t ; B 118 -15 567 562 ;
C 117 ; WX 600 ; N u ; B 70 -15 592 439 ;
C 118 ; WX 600 ; N v ; B 70 0 695 439 ;
C 119 ; WX 600 ; N w ; B 53 0 712 439 ;
C 120 ; WX 600 ; N x ; B 6 0 671 439 ;
C 121 ; WX 600 ; N y ; B -21 -142 695 439 ;
C 122 ; WX 600 ; N z ; B 81 0 614 439 ;
C 123 ; WX 600 ; N braceleft ; B 203 -102 595 616 ;
C 124 ; WX 600 ; N bar ; B 201 -250 505 750 ;
C 125 ; WX 600 ; N braceright ; B 114 -102 506 616 ;
C 126 ; WX 600 ; N asciitilde ; B 120 153 590 356 ;
C 161 ; WX 600 ; N exclamdown ; B 196 -146 477 449 ;
C 162 ; WX 600 ; N cent ; B 121 -49 605 614 ;
C 163 ; WX 600 ; N sterling ; B 106 -28 650 611 ;
C 164 ; WX 600 ; N fraction ; B 22 -60 708 661 ;
C 165 ; WX 600 ; N yen ; B 98 0 710 562 ;
C 166 ; WX 600 ; N florin ; B -57 -131 702 616 ;
C 167 ; WX 600 ; N section ; B 74 -70 620 580 ;
C 168 ; WX 600 ; N currency ; B 77 49 644 517 ;
C 169 ; WX 600 ; N quotesingle ; B 303 277 493 562 ;
C 170 ; WX 600 ; N quotedblleft ; B 190 277 594 562 ;
C 171 ; WX 600 ; N guillemotleft ; B 62 70 639 446 ;
C 172 ; WX 600 ; N guilsinglleft ; B 195 70 545 446 ;
C 173 ; WX 600 ; N guilsinglright ; B 165 70 514 446 ;
C 174 ; WX 600 ; N fi ; B 12 0 644 626 ;
C 175 ; WX 600 ; N fl ; B 12 0 644 626 ;
C 177 ; WX 600 ; N endash ; B 108 203 602 313 ;
C 178 ; WX 600 ; N dagger ; B 175 -70 586 580 ;
C 179 ; WX 600 ; N daggerdbl ; B 121 -70 587 580 ;
C 180 ; WX 600 ; N periodcentered ; B 248 165 461 351 ;
C 182 ; WX 600 ; N paragraph ; B 61 -70 700 580 ;
C 183 ; WX 600 ; N bullet ; B 196 132 523 430 ;
C 184 ; WX 600 ; N quotesinglbase ; B 144 -142 458 143 ;
C 185 ; WX 600 ; N quotedblbase ; B 34 -142 560 143 ;
C 186 ; WX 600 ; N quotedblright ; B 119 277 645 562 ;
C 187 ; WX 600 ; N guillemotright ; B 71 70 647 446 ;
C 188 ; WX 600 ; N ellipsis ; B 35 -15 587 116 ;
C 189 ; WX 600 ; N perthousand ; B -45 -15 743 616 ;
C 191 ; WX 600 ; N questiondown ; B 100 -146 509 449 ;
C 193 ; WX 600 ; N grave ; B 272 508 503 661 ;
C 194 ; WX 600 ; N acute ; B 312 508 609 661 ;
C 195 ; WX 600 ; N circumflex ; B 212 483 607 657 ;
C 196 ; WX 600 ; N tilde ; B 199 493 643 636 ;
C 197 ; WX 600 ; N macron ; B 195 505 637 585 ;
C 198 ; WX 600 ; N breve ; B 217 468 652 631 ;
C 199 ; WX 600 ; N dotaccent ; B 348 498 493 638 ;
C 200 ; WX 600 ; N dieresis ; B 246 498 595 638 ;
C 202 ; WX 600 ; N ring ; B 319 481 528 678 ;
C 203 ; WX 600 ; N cedilla ; B 168 -206 368 0 ;
C 205 ; WX 600 ; N hungarumlaut ; B 171 488 729 661 ;
C 206 ; WX 600 ; N ogonek ; B 143 -199 367 0 ;
C 207 ; WX 600 ; N caron ; B 238 493 633 667 ;
C 208 ; WX 600 ; N emdash ; B 33 203 677 313 ;
C 225 ; WX 600 ; N AE ; B -29 0 708 562 ;
C 227 ; WX 600 ; N ordfeminine ; B 188 196 526 580 ;
C 232 ; WX 600 ; N Lslash ; B 39 0 636 562 ;
C 233 ; WX 600 ; N Oslash ; B 48 -22 673 584 ;
C 234 ; WX 600 ; N OE ; B 26 0 701 562 ;
C 235 ; WX 600 ; N ordmasculine ; B 188 196 543 580 ;
C 241 ; WX 600 ; N ae ; B 21 -15 652 454 ;
C 245 ; WX 600 ; N dotlessi ; B 77 0 546 439 ;
C 248 ; WX 600 ; N lslash ; B 77 0 587 626 ;
C 249 ; WX 600 ; N oslash ; B 54 -24 638 463 ;
C 250 ; WX 600 ; N oe ; B 18 -15 662 454 ;
C 251 ; WX 600 ; N germandbls ; B 22 -15 629 626 ;
C -1 ; WX 600 ; N Idieresis ; B 77 0 643 761 ;
C -1 ; WX 600 ; N eacute ; B 81 -15 609 661 ;
C -1 ; WX 600 ; N abreve ; B 61 -15 658 661 ;
C -1 ; WX 600 ; N uhungarumlaut ; B 70 -15 769 661 ;
C -1 ; WX 600 ; N ecaron ; B 81 -15 633 667 ;
C -1 ; WX 600 ; N Ydieresis ; B 109 0 709 761 ;
C -1 ; WX 600 ; N divide ; B 114 16 596 500 ;
C -1 ; WX 600 ; N Yacute ; B 109 0 709 784 ;
C -1 ; WX 600 ; N Acircumflex ; B -9 0 632 780 ;
C -1 ; WX 600 ; N aacute ; B 61 -15 609 661 ;
C -1 ; WX 600 ; N Ucircumflex ; B 101 -18 716 780 ;
C -1 ; WX 600 ; N yacute ; B -21 -142 695 661 ;
C -1 ; WX 600 ; N scommaaccent ; B 66 -250 608 459 ;
C -1 ; WX 600 ; N ecircumflex ; B 81 -15 607 657 ;
C -1 ; WX 600 ; N Uring ; B 101 -18 716 801 ;
C -1 ; WX 600 ; N Udieresis ; B 101 -18 716 761 ;
C -1 ; WX 600 ; N aogonek ; B 61 -199 593 454 ;
C -1 ; WX 600 ; N Uacute ; B 101 -18 716 784 ;
C -1 ; WX 600 ; N uogonek ; B 70 -199 592 439 ;
C -1 ; WX 600 ; N Edieresis ; B 25 0 670 761 ;
C -1 ; WX 600 ; N Dcroat ; B 30 0 664 562 ;
C -1 ; WX 600 ; N commaaccent ; B 151 -250 385 -57 ;
C -1 ; WX 600 ; N copyright ; B 53 -18 667 580 ;
C -1 ; WX 600 ; N Emacron ; B 25 0 670 708 ;
C -1 ; WX 600 ; N ccaron ; B 81 -15 633 667 ;
C -1 ; WX 600 ; N aring ; B 61 -15 593 678 ;
C -1 ; WX 600 ; N Ncommaaccent ; B 8 -250 730 562 ;
C -1 ; WX 600 ; N lacute ; B 77 0 639 801 ;
C -1 ; WX 600 ; N agrave ; B 61 -15 593 661 ;
C -1 ; WX 600 ; N Tcommaaccent ; B 86 -250 679 562 ;
C -1 ; WX 600 ; N Cacute ; B 74 -18 675 784 ;
C -1 ; WX 600 ; N atilde ; B 61 -15 643 636 ;
C -1 ; WX 600 ; N Edotaccent ; B 25 0 670 761 ;
C -1 ; WX 600 ; N scaron ; B 66 -17 633 667 ;
C -1 ; WX 600 ; N scedilla ; B 66 -206 608 459 ;
C -1 ; WX 600 ; N iacute ; B 77 0 609 661 ;
C -1 ; WX 600 ; N lozenge ; B 145 0 614 740 ;
C -1 ; WX 600 ; N Rcaron ; B 24 0 659 790 ;
C -1 ; WX 600 ; N Gcommaaccent ; B 74 -250 675 580 ;
C -1 ; WX 600 ; N ucircumflex ; B 70 -15 597 657 ;
C -1 ; WX 600 ; N acircumflex ; B 61 -15 607 657 ;
C -1 ; WX 600 ; N Amacron ; B -9 0 633 708 ;
C -1 ; WX 600 ; N rcaron ; B 47 0 655 667 ;
C -1 ; WX 600 ; N ccedilla ; B 81 -206 631 459 ;
C -1 ; WX 600 ; N Zdotaccent ; B 62 0 637 761 ;
C -1 ; WX 600 ; N Thorn ; B 48 0 620 562 ;
C -1 ; WX 600 ; N Omacron ; B 74 -18 663 708 ;
C -1 ; WX 600 ; N Racute ; B 24 0 665 784 ;
C -1 ; WX 600 ; N Sacute ; B 54 -22 673 784 ;
C -1 ; WX 600 ; N dcaron ; B 60 -15 861 626 ;
C -1 ; WX 600 ; N Umacron ; B 101 -18 716 708 ;
C -1 ; WX 600 ; N uring ; B 70 -15 592 678 ;
C -1 ; WX 600 ; N threesuperior ; B 193 222 526 616 ;
C -1 ; WX 600 ; N Ograve ; B 74 -18 645 784 ;
C -1 ; WX 600 ; N Agrave ; B -9 0 632 784 ;
C -1 ; WX 600 ; N Abreve ; B -9 0 684 784 ;
C -1 ; WX 600 ; N multiply ; B 104 39 606 478 ;
C -1 ; WX 600 ; N uacute ; B 70 -15 599 661 ;
C -1 ; WX 600 ; N Tcaron ; B 86 0 679 790 ;
C -1 ; WX 600 ; N partialdiff ; B 91 -38 627 728 ;
C -1 ; WX 600 ; N ydieresis ; B -21 -142 695 638 ;
C -1 ; WX 600 ; N Nacute ; B 8 -12 730 784 ;
C -1 ; WX 600 ; N icircumflex ; B 77 0 577 657 ;
C -1 ; WX 600 ; N Ecircumflex ; B 25 0 670 780 ;
C -1 ; WX 600 ; N adieresis ; B 61 -15 595 638 ;
C -1 ; WX 600 ; N edieresis ; B 81 -15 605 638 ;
C -1 ; WX 600 ; N cacute ; B 81 -15 649 661 ;
C -1 ; WX 600 ; N nacute ; B 18 0 639 661 ;
C -1 ; WX 600 ; N umacron ; B 70 -15 637 585 ;
C -1 ; WX 600 ; N Ncaron ; B 8 -12 730 790 ;
C -1 ; WX 600 ; N Iacute ; B 77 0 643 784 ;
C -1 ; WX 600 ; N plusminus ; B 76 24 614 515 ;
C -1 ; WX 600 ; N brokenbar ; B 217 -175 489 675 ;
C -1 ; WX 600 ; N registered ; B 53 -18 667 580 ;
C -1 ; WX 600 ; N Gbreve ; B 74 -18 684 784 ;
C -1 ; WX 600 ; N Idotaccent ; B 77 0 643 761 ;
C -1 ; WX 600 ; N summation ; B 15 -10 672 706 ;
C -1 ; WX 600 ; N Egrave ; B 25 0 670 784 ;
C -1 ; WX 600 ; N racute ; B 47 0 655 661 ;
C -1 ; WX 600 ; N omacron ; B 71 -15 637 585 ;
C -1 ; WX 600 ; N Zacute ; B 62 0 665 784 ;
C -1 ; WX 600 ; N Zcaron ; B 62 0 659 790 ;
C -1 ; WX 600 ; N greaterequal ; B 26 0 627 696 ;
C -1 ; WX 600 ; N Eth ; B 30 0 664 562 ;
C -1 ; WX 600 ; N Ccedilla ; B 74 -206 675 580 ;
C -1 ; WX 600 ; N lcommaaccent ; B 77 -250 546 626 ;
C -1 ; WX 600 ; N tcaron ; B 118 -15 627 703 ;
C -1 ; WX 600 ; N eogonek ; B 81 -199 605 454 ;
C -1 ; WX 600 ; N Uogonek ; B 101 -199 716 562 ;
C -1 ; WX 600 ; N Aacute ; B -9 0 655 784 ;
C -1 ; WX 600 ; N Adieresis ; B -9 0 632 761 ;
C -1 ; WX 600 ; N egrave ; B 81 -15 605 661 ;
C -1 ; WX 600 ; N zacute ; B 81 0 614 661 ;
C -1 ; WX 600 ; N iogonek ; B 77 -199 546 658 ;
C -1 ; WX 600 ; N Oacute ; B 74 -18 645 784 ;
C -1 ; WX 600 ; N oacute ; B 71 -15 649 661 ;
C -1 ; WX 600 ; N amacron ; B 61 -15 637 585 ;
C -1 ; WX 600 ; N sacute ; B 66 -17 609 661 ;
C -1 ; WX 600 ; N idieresis ; B 77 0 561 618 ;
C -1 ; WX 600 ; N Ocircumflex ; B 74 -18 645 780 ;
C -1 ; WX 600 ; N Ugrave ; B 101 -18 716 784 ;
C -1 ; WX 600 ; N Delta ; B 6 0 594 688 ;
C -1 ; WX 600 ; N thorn ; B -32 -142 622 626 ;
C -1 ; WX 600 ; N twosuperior ; B 191 230 542 616 ;
C -1 ; WX 600 ; N Odieresis ; B 74 -18 645 761 ;
C -1 ; WX 600 ; N mu ; B 49 -142 592 439 ;
C -1 ; WX 600 ; N igrave ; B 77 0 546 661 ;
C -1 ; WX 600 ; N ohungarumlaut ; B 71 -15 809 661 ;
C -1 ; WX 600 ; N Eogonek ; B 25 -199 670 562 ;
C -1 ; WX 600 ; N dcroat ; B 60 -15 712 626 ;
C -1 ; WX 600 ; N threequarters ; B 8 -60 699 661 ;
C -1 ; WX 600 ; N Scedilla ; B 54 -206 673 582 ;
C -1 ; WX 600 ; N lcaron ; B 77 0 731 626 ;
C -1 ; WX 600 ; N Kcommaaccent ; B 21 -250 692 562 ;
C -1 ; WX 600 ; N Lacute ; B 39 0 636 784 ;
C -1 ; WX 600 ; N trademark ; B 86 230 869 562 ;
C -1 ; WX 600 ; N edotaccent ; B 81 -15 605 638 ;
C -1 ; WX 600 ; N Igrave ; B 77 0 643 784 ;
C -1 ; WX 600 ; N Imacron ; B 77 0 663 708 ;
C -1 ; WX 600 ; N Lcaron ; B 39 0 757 562 ;
C -1 ; WX 600 ; N onehalf ; B 22 -60 716 661 ;
C -1 ; WX 600 ; N lessequal ; B 26 0 671 696 ;
C -1 ; WX 600 ; N ocircumflex ; B 71 -15 622 657 ;
C -1 ; WX 600 ; N ntilde ; B 18 0 643 636 ;
C -1 ; WX 600 ; N Uhungarumlaut ; B 101 -18 805 784 ;
C -1 ; WX 600 ; N Eacute ; B 25 0 670 784 ;
C -1 ; WX 600 ; N emacron ; B 81 -15 637 585 ;
C -1 ; WX 600 ; N gbreve ; B 40 -146 674 661 ;
C -1 ; WX 600 ; N onequarter ; B 13 -60 707 661 ;
C -1 ; WX 600 ; N Scaron ; B 54 -22 689 790 ;
C -1 ; WX 600 ; N Scommaaccent ; B 54 -250 673 582 ;
C -1 ; WX 600 ; N Ohungarumlaut ; B 74 -18 795 784 ;
C -1 ; WX 600 ; N degree ; B 173 243 570 616 ;
C -1 ; WX 600 ; N ograve ; B 71 -15 622 661 ;
C -1 ; WX 600 ; N Ccaron ; B 74 -18 689 790 ;
C -1 ; WX 600 ; N ugrave ; B 70 -15 592 661 ;
C -1 ; WX 600 ; N radical ; B 67 -104 635 778 ;
C -1 ; WX 600 ; N Dcaron ; B 30 0 664 790 ;
C -1 ; WX 600 ; N rcommaaccent ; B 47 -250 655 454 ;
C -1 ; WX 600 ; N Ntilde ; B 8 -12 730 759 ;
C -1 ; WX 600 ; N otilde ; B 71 -15 643 636 ;
C -1 ; WX 600 ; N Rcommaaccent ; B 24 -250 617 562 ;
C -1 ; WX 600 ; N Lcommaaccent ; B 39 -250 636 562 ;
C -1 ; WX 600 ; N Atilde ; B -9 0 669 759 ;
C -1 ; WX 600 ; N Aogonek ; B -9 -199 632 562 ;
C -1 ; WX 600 ; N Aring ; B -9 0 632 801 ;
C -1 ; WX 600 ; N Otilde ; B 74 -18 669 759 ;
C -1 ; WX 600 ; N zdotaccent ; B 81 0 614 638 ;
C -1 ; WX 600 ; N Ecaron ; B 25 0 670 790 ;
C -1 ; WX 600 ; N Iogonek ; B 77 -199 643 562 ;
C -1 ; WX 600 ; N kcommaaccent ; B 33 -250 643 626 ;
C -1 ; WX 600 ; N minus ; B 114 203 596 313 ;
C -1 ; WX 600 ; N Icircumflex ; B 77 0 643 780 ;
C -1 ; WX 600 ; N ncaron ; B 18 0 633 667 ;
C -1 ; WX 600 ; N tcommaaccent ; B 118 -250 567 562 ;
C -1 ; WX 600 ; N logicalnot ; B 135 103 617 413 ;
C -1 ; WX 600 ; N odieresis ; B 71 -15 622 638 ;
C -1 ; WX 600 ; N udieresis ; B 70 -15 595 638 ;
C -1 ; WX 600 ; N notequal ; B 30 -47 626 563 ;
C -1 ; WX 600 ; N gcommaaccent ; B 40 -146 674 714 ;
C -1 ; WX 600 ; N eth ; B 93 -27 661 626 ;
C -1 ; WX 600 ; N zcaron ; B 81 0 643 667 ;
C -1 ; WX 600 ; N ncommaaccent ; B 18 -250 615 454 ;
C -1 ; WX 600 ; N onesuperior ; B 212 230 514 616 ;
C -1 ; WX 600 ; N imacron ; B 77 0 575 585 ;
C -1 ; WX 600 ; N Euro ; B 0 0 0 0 ;
EndCharMetrics
EndFontMetrics

View File

@ -0,0 +1,342 @@
StartFontMetrics 4.1
Comment Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
Comment Creation Date: Thu May 1 17:37:52 1997
Comment UniqueID 43051
Comment VMusage 16248 75829
FontName Courier-Oblique
FullName Courier Oblique
FamilyName Courier
Weight Medium
ItalicAngle -12
IsFixedPitch true
CharacterSet ExtendedRoman
FontBBox -27 -250 849 805
UnderlinePosition -100
UnderlineThickness 50
Version 003.000
Notice Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
EncodingScheme AdobeStandardEncoding
CapHeight 562
XHeight 426
Ascender 629
Descender -157
StdHW 51
StdVW 51
StartCharMetrics 315
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
C 33 ; WX 600 ; N exclam ; B 243 -15 464 572 ;
C 34 ; WX 600 ; N quotedbl ; B 273 328 532 562 ;
C 35 ; WX 600 ; N numbersign ; B 133 -32 596 639 ;
C 36 ; WX 600 ; N dollar ; B 108 -126 596 662 ;
C 37 ; WX 600 ; N percent ; B 134 -15 599 622 ;
C 38 ; WX 600 ; N ampersand ; B 87 -15 580 543 ;
C 39 ; WX 600 ; N quoteright ; B 283 328 495 562 ;
C 40 ; WX 600 ; N parenleft ; B 313 -108 572 622 ;
C 41 ; WX 600 ; N parenright ; B 137 -108 396 622 ;
C 42 ; WX 600 ; N asterisk ; B 212 257 580 607 ;
C 43 ; WX 600 ; N plus ; B 129 44 580 470 ;
C 44 ; WX 600 ; N comma ; B 157 -112 370 122 ;
C 45 ; WX 600 ; N hyphen ; B 152 231 558 285 ;
C 46 ; WX 600 ; N period ; B 238 -15 382 109 ;
C 47 ; WX 600 ; N slash ; B 112 -80 604 629 ;
C 48 ; WX 600 ; N zero ; B 154 -15 575 622 ;
C 49 ; WX 600 ; N one ; B 98 0 515 622 ;
C 50 ; WX 600 ; N two ; B 70 0 568 622 ;
C 51 ; WX 600 ; N three ; B 82 -15 538 622 ;
C 52 ; WX 600 ; N four ; B 108 0 541 622 ;
C 53 ; WX 600 ; N five ; B 99 -15 589 607 ;
C 54 ; WX 600 ; N six ; B 155 -15 629 622 ;
C 55 ; WX 600 ; N seven ; B 182 0 612 607 ;
C 56 ; WX 600 ; N eight ; B 132 -15 588 622 ;
C 57 ; WX 600 ; N nine ; B 93 -15 574 622 ;
C 58 ; WX 600 ; N colon ; B 238 -15 441 385 ;
C 59 ; WX 600 ; N semicolon ; B 157 -112 441 385 ;
C 60 ; WX 600 ; N less ; B 96 42 610 472 ;
C 61 ; WX 600 ; N equal ; B 109 138 600 376 ;
C 62 ; WX 600 ; N greater ; B 85 42 599 472 ;
C 63 ; WX 600 ; N question ; B 222 -15 583 572 ;
C 64 ; WX 600 ; N at ; B 127 -15 582 622 ;
C 65 ; WX 600 ; N A ; B 3 0 607 562 ;
C 66 ; WX 600 ; N B ; B 43 0 616 562 ;
C 67 ; WX 600 ; N C ; B 93 -18 655 580 ;
C 68 ; WX 600 ; N D ; B 43 0 645 562 ;
C 69 ; WX 600 ; N E ; B 53 0 660 562 ;
C 70 ; WX 600 ; N F ; B 53 0 660 562 ;
C 71 ; WX 600 ; N G ; B 83 -18 645 580 ;
C 72 ; WX 600 ; N H ; B 32 0 687 562 ;
C 73 ; WX 600 ; N I ; B 96 0 623 562 ;
C 74 ; WX 600 ; N J ; B 52 -18 685 562 ;
C 75 ; WX 600 ; N K ; B 38 0 671 562 ;
C 76 ; WX 600 ; N L ; B 47 0 607 562 ;
C 77 ; WX 600 ; N M ; B 4 0 715 562 ;
C 78 ; WX 600 ; N N ; B 7 -13 712 562 ;
C 79 ; WX 600 ; N O ; B 94 -18 625 580 ;
C 80 ; WX 600 ; N P ; B 79 0 644 562 ;
C 81 ; WX 600 ; N Q ; B 95 -138 625 580 ;
C 82 ; WX 600 ; N R ; B 38 0 598 562 ;
C 83 ; WX 600 ; N S ; B 76 -20 650 580 ;
C 84 ; WX 600 ; N T ; B 108 0 665 562 ;
C 85 ; WX 600 ; N U ; B 125 -18 702 562 ;
C 86 ; WX 600 ; N V ; B 105 -13 723 562 ;
C 87 ; WX 600 ; N W ; B 106 -13 722 562 ;
C 88 ; WX 600 ; N X ; B 23 0 675 562 ;
C 89 ; WX 600 ; N Y ; B 133 0 695 562 ;
C 90 ; WX 600 ; N Z ; B 86 0 610 562 ;
C 91 ; WX 600 ; N bracketleft ; B 246 -108 574 622 ;
C 92 ; WX 600 ; N backslash ; B 249 -80 468 629 ;
C 93 ; WX 600 ; N bracketright ; B 135 -108 463 622 ;
C 94 ; WX 600 ; N asciicircum ; B 175 354 587 622 ;
C 95 ; WX 600 ; N underscore ; B -27 -125 584 -75 ;
C 96 ; WX 600 ; N quoteleft ; B 343 328 457 562 ;
C 97 ; WX 600 ; N a ; B 76 -15 569 441 ;
C 98 ; WX 600 ; N b ; B 29 -15 625 629 ;
C 99 ; WX 600 ; N c ; B 106 -15 608 441 ;
C 100 ; WX 600 ; N d ; B 85 -15 640 629 ;
C 101 ; WX 600 ; N e ; B 106 -15 598 441 ;
C 102 ; WX 600 ; N f ; B 114 0 662 629 ; L i fi ; L l fl ;
C 103 ; WX 600 ; N g ; B 61 -157 657 441 ;
C 104 ; WX 600 ; N h ; B 33 0 592 629 ;
C 105 ; WX 600 ; N i ; B 95 0 515 657 ;
C 106 ; WX 600 ; N j ; B 52 -157 550 657 ;
C 107 ; WX 600 ; N k ; B 58 0 633 629 ;
C 108 ; WX 600 ; N l ; B 95 0 515 629 ;
C 109 ; WX 600 ; N m ; B -5 0 615 441 ;
C 110 ; WX 600 ; N n ; B 26 0 585 441 ;
C 111 ; WX 600 ; N o ; B 102 -15 588 441 ;
C 112 ; WX 600 ; N p ; B -24 -157 605 441 ;
C 113 ; WX 600 ; N q ; B 85 -157 682 441 ;
C 114 ; WX 600 ; N r ; B 60 0 636 441 ;
C 115 ; WX 600 ; N s ; B 78 -15 584 441 ;
C 116 ; WX 600 ; N t ; B 167 -15 561 561 ;
C 117 ; WX 600 ; N u ; B 101 -15 572 426 ;
C 118 ; WX 600 ; N v ; B 90 -10 681 426 ;
C 119 ; WX 600 ; N w ; B 76 -10 695 426 ;
C 120 ; WX 600 ; N x ; B 20 0 655 426 ;
C 121 ; WX 600 ; N y ; B -4 -157 683 426 ;
C 122 ; WX 600 ; N z ; B 99 0 593 426 ;
C 123 ; WX 600 ; N braceleft ; B 233 -108 569 622 ;
C 124 ; WX 600 ; N bar ; B 222 -250 485 750 ;
C 125 ; WX 600 ; N braceright ; B 140 -108 477 622 ;
C 126 ; WX 600 ; N asciitilde ; B 116 197 600 320 ;
C 161 ; WX 600 ; N exclamdown ; B 225 -157 445 430 ;
C 162 ; WX 600 ; N cent ; B 151 -49 588 614 ;
C 163 ; WX 600 ; N sterling ; B 124 -21 621 611 ;
C 164 ; WX 600 ; N fraction ; B 84 -57 646 665 ;
C 165 ; WX 600 ; N yen ; B 120 0 693 562 ;
C 166 ; WX 600 ; N florin ; B -26 -143 671 622 ;
C 167 ; WX 600 ; N section ; B 104 -78 590 580 ;
C 168 ; WX 600 ; N currency ; B 94 58 628 506 ;
C 169 ; WX 600 ; N quotesingle ; B 345 328 460 562 ;
C 170 ; WX 600 ; N quotedblleft ; B 262 328 541 562 ;
C 171 ; WX 600 ; N guillemotleft ; B 92 70 652 446 ;
C 172 ; WX 600 ; N guilsinglleft ; B 204 70 540 446 ;
C 173 ; WX 600 ; N guilsinglright ; B 170 70 506 446 ;
C 174 ; WX 600 ; N fi ; B 3 0 619 629 ;
C 175 ; WX 600 ; N fl ; B 3 0 619 629 ;
C 177 ; WX 600 ; N endash ; B 124 231 586 285 ;
C 178 ; WX 600 ; N dagger ; B 217 -78 546 580 ;
C 179 ; WX 600 ; N daggerdbl ; B 163 -78 546 580 ;
C 180 ; WX 600 ; N periodcentered ; B 275 189 434 327 ;
C 182 ; WX 600 ; N paragraph ; B 100 -78 630 562 ;
C 183 ; WX 600 ; N bullet ; B 224 130 485 383 ;
C 184 ; WX 600 ; N quotesinglbase ; B 185 -134 397 100 ;
C 185 ; WX 600 ; N quotedblbase ; B 115 -134 478 100 ;
C 186 ; WX 600 ; N quotedblright ; B 213 328 576 562 ;
C 187 ; WX 600 ; N guillemotright ; B 58 70 618 446 ;
C 188 ; WX 600 ; N ellipsis ; B 46 -15 575 111 ;
C 189 ; WX 600 ; N perthousand ; B 59 -15 627 622 ;
C 191 ; WX 600 ; N questiondown ; B 105 -157 466 430 ;
C 193 ; WX 600 ; N grave ; B 294 497 484 672 ;
C 194 ; WX 600 ; N acute ; B 348 497 612 672 ;
C 195 ; WX 600 ; N circumflex ; B 229 477 581 654 ;
C 196 ; WX 600 ; N tilde ; B 212 489 629 606 ;
C 197 ; WX 600 ; N macron ; B 232 525 600 565 ;
C 198 ; WX 600 ; N breve ; B 279 501 576 609 ;
C 199 ; WX 600 ; N dotaccent ; B 373 537 478 640 ;
C 200 ; WX 600 ; N dieresis ; B 272 537 579 640 ;
C 202 ; WX 600 ; N ring ; B 332 463 500 627 ;
C 203 ; WX 600 ; N cedilla ; B 197 -151 344 10 ;
C 205 ; WX 600 ; N hungarumlaut ; B 239 497 683 672 ;
C 206 ; WX 600 ; N ogonek ; B 189 -172 377 4 ;
C 207 ; WX 600 ; N caron ; B 262 492 614 669 ;
C 208 ; WX 600 ; N emdash ; B 49 231 661 285 ;
C 225 ; WX 600 ; N AE ; B 3 0 655 562 ;
C 227 ; WX 600 ; N ordfeminine ; B 209 249 512 580 ;
C 232 ; WX 600 ; N Lslash ; B 47 0 607 562 ;
C 233 ; WX 600 ; N Oslash ; B 94 -80 625 629 ;
C 234 ; WX 600 ; N OE ; B 59 0 672 562 ;
C 235 ; WX 600 ; N ordmasculine ; B 210 249 535 580 ;
C 241 ; WX 600 ; N ae ; B 41 -15 626 441 ;
C 245 ; WX 600 ; N dotlessi ; B 95 0 515 426 ;
C 248 ; WX 600 ; N lslash ; B 95 0 587 629 ;
C 249 ; WX 600 ; N oslash ; B 102 -80 588 506 ;
C 250 ; WX 600 ; N oe ; B 54 -15 615 441 ;
C 251 ; WX 600 ; N germandbls ; B 48 -15 617 629 ;
C -1 ; WX 600 ; N Idieresis ; B 96 0 623 753 ;
C -1 ; WX 600 ; N eacute ; B 106 -15 612 672 ;
C -1 ; WX 600 ; N abreve ; B 76 -15 576 609 ;
C -1 ; WX 600 ; N uhungarumlaut ; B 101 -15 723 672 ;
C -1 ; WX 600 ; N ecaron ; B 106 -15 614 669 ;
C -1 ; WX 600 ; N Ydieresis ; B 133 0 695 753 ;
C -1 ; WX 600 ; N divide ; B 136 48 573 467 ;
C -1 ; WX 600 ; N Yacute ; B 133 0 695 805 ;
C -1 ; WX 600 ; N Acircumflex ; B 3 0 607 787 ;
C -1 ; WX 600 ; N aacute ; B 76 -15 612 672 ;
C -1 ; WX 600 ; N Ucircumflex ; B 125 -18 702 787 ;
C -1 ; WX 600 ; N yacute ; B -4 -157 683 672 ;
C -1 ; WX 600 ; N scommaaccent ; B 78 -250 584 441 ;
C -1 ; WX 600 ; N ecircumflex ; B 106 -15 598 654 ;
C -1 ; WX 600 ; N Uring ; B 125 -18 702 760 ;
C -1 ; WX 600 ; N Udieresis ; B 125 -18 702 753 ;
C -1 ; WX 600 ; N aogonek ; B 76 -172 569 441 ;
C -1 ; WX 600 ; N Uacute ; B 125 -18 702 805 ;
C -1 ; WX 600 ; N uogonek ; B 101 -172 572 426 ;
C -1 ; WX 600 ; N Edieresis ; B 53 0 660 753 ;
C -1 ; WX 600 ; N Dcroat ; B 43 0 645 562 ;
C -1 ; WX 600 ; N commaaccent ; B 145 -250 323 -58 ;
C -1 ; WX 600 ; N copyright ; B 53 -18 667 580 ;
C -1 ; WX 600 ; N Emacron ; B 53 0 660 698 ;
C -1 ; WX 600 ; N ccaron ; B 106 -15 614 669 ;
C -1 ; WX 600 ; N aring ; B 76 -15 569 627 ;
C -1 ; WX 600 ; N Ncommaaccent ; B 7 -250 712 562 ;
C -1 ; WX 600 ; N lacute ; B 95 0 640 805 ;
C -1 ; WX 600 ; N agrave ; B 76 -15 569 672 ;
C -1 ; WX 600 ; N Tcommaaccent ; B 108 -250 665 562 ;
C -1 ; WX 600 ; N Cacute ; B 93 -18 655 805 ;
C -1 ; WX 600 ; N atilde ; B 76 -15 629 606 ;
C -1 ; WX 600 ; N Edotaccent ; B 53 0 660 753 ;
C -1 ; WX 600 ; N scaron ; B 78 -15 614 669 ;
C -1 ; WX 600 ; N scedilla ; B 78 -151 584 441 ;
C -1 ; WX 600 ; N iacute ; B 95 0 612 672 ;
C -1 ; WX 600 ; N lozenge ; B 94 0 519 706 ;
C -1 ; WX 600 ; N Rcaron ; B 38 0 642 802 ;
C -1 ; WX 600 ; N Gcommaaccent ; B 83 -250 645 580 ;
C -1 ; WX 600 ; N ucircumflex ; B 101 -15 572 654 ;
C -1 ; WX 600 ; N acircumflex ; B 76 -15 581 654 ;
C -1 ; WX 600 ; N Amacron ; B 3 0 607 698 ;
C -1 ; WX 600 ; N rcaron ; B 60 0 636 669 ;
C -1 ; WX 600 ; N ccedilla ; B 106 -151 614 441 ;
C -1 ; WX 600 ; N Zdotaccent ; B 86 0 610 753 ;
C -1 ; WX 600 ; N Thorn ; B 79 0 606 562 ;
C -1 ; WX 600 ; N Omacron ; B 94 -18 628 698 ;
C -1 ; WX 600 ; N Racute ; B 38 0 670 805 ;
C -1 ; WX 600 ; N Sacute ; B 76 -20 650 805 ;
C -1 ; WX 600 ; N dcaron ; B 85 -15 849 629 ;
C -1 ; WX 600 ; N Umacron ; B 125 -18 702 698 ;
C -1 ; WX 600 ; N uring ; B 101 -15 572 627 ;
C -1 ; WX 600 ; N threesuperior ; B 213 240 501 622 ;
C -1 ; WX 600 ; N Ograve ; B 94 -18 625 805 ;
C -1 ; WX 600 ; N Agrave ; B 3 0 607 805 ;
C -1 ; WX 600 ; N Abreve ; B 3 0 607 732 ;
C -1 ; WX 600 ; N multiply ; B 103 43 607 470 ;
C -1 ; WX 600 ; N uacute ; B 101 -15 602 672 ;
C -1 ; WX 600 ; N Tcaron ; B 108 0 665 802 ;
C -1 ; WX 600 ; N partialdiff ; B 45 -38 546 710 ;
C -1 ; WX 600 ; N ydieresis ; B -4 -157 683 620 ;
C -1 ; WX 600 ; N Nacute ; B 7 -13 712 805 ;
C -1 ; WX 600 ; N icircumflex ; B 95 0 551 654 ;
C -1 ; WX 600 ; N Ecircumflex ; B 53 0 660 787 ;
C -1 ; WX 600 ; N adieresis ; B 76 -15 575 620 ;
C -1 ; WX 600 ; N edieresis ; B 106 -15 598 620 ;
C -1 ; WX 600 ; N cacute ; B 106 -15 612 672 ;
C -1 ; WX 600 ; N nacute ; B 26 0 602 672 ;
C -1 ; WX 600 ; N umacron ; B 101 -15 600 565 ;
C -1 ; WX 600 ; N Ncaron ; B 7 -13 712 802 ;
C -1 ; WX 600 ; N Iacute ; B 96 0 640 805 ;
C -1 ; WX 600 ; N plusminus ; B 96 44 594 558 ;
C -1 ; WX 600 ; N brokenbar ; B 238 -175 469 675 ;
C -1 ; WX 600 ; N registered ; B 53 -18 667 580 ;
C -1 ; WX 600 ; N Gbreve ; B 83 -18 645 732 ;
C -1 ; WX 600 ; N Idotaccent ; B 96 0 623 753 ;
C -1 ; WX 600 ; N summation ; B 15 -10 670 706 ;
C -1 ; WX 600 ; N Egrave ; B 53 0 660 805 ;
C -1 ; WX 600 ; N racute ; B 60 0 636 672 ;
C -1 ; WX 600 ; N omacron ; B 102 -15 600 565 ;
C -1 ; WX 600 ; N Zacute ; B 86 0 670 805 ;
C -1 ; WX 600 ; N Zcaron ; B 86 0 642 802 ;
C -1 ; WX 600 ; N greaterequal ; B 98 0 594 710 ;
C -1 ; WX 600 ; N Eth ; B 43 0 645 562 ;
C -1 ; WX 600 ; N Ccedilla ; B 93 -151 658 580 ;
C -1 ; WX 600 ; N lcommaaccent ; B 95 -250 515 629 ;
C -1 ; WX 600 ; N tcaron ; B 167 -15 587 717 ;
C -1 ; WX 600 ; N eogonek ; B 106 -172 598 441 ;
C -1 ; WX 600 ; N Uogonek ; B 124 -172 702 562 ;
C -1 ; WX 600 ; N Aacute ; B 3 0 660 805 ;
C -1 ; WX 600 ; N Adieresis ; B 3 0 607 753 ;
C -1 ; WX 600 ; N egrave ; B 106 -15 598 672 ;
C -1 ; WX 600 ; N zacute ; B 99 0 612 672 ;
C -1 ; WX 600 ; N iogonek ; B 95 -172 515 657 ;
C -1 ; WX 600 ; N Oacute ; B 94 -18 640 805 ;
C -1 ; WX 600 ; N oacute ; B 102 -15 612 672 ;
C -1 ; WX 600 ; N amacron ; B 76 -15 600 565 ;
C -1 ; WX 600 ; N sacute ; B 78 -15 612 672 ;
C -1 ; WX 600 ; N idieresis ; B 95 0 545 620 ;
C -1 ; WX 600 ; N Ocircumflex ; B 94 -18 625 787 ;
C -1 ; WX 600 ; N Ugrave ; B 125 -18 702 805 ;
C -1 ; WX 600 ; N Delta ; B 6 0 598 688 ;
C -1 ; WX 600 ; N thorn ; B -24 -157 605 629 ;
C -1 ; WX 600 ; N twosuperior ; B 230 249 535 622 ;
C -1 ; WX 600 ; N Odieresis ; B 94 -18 625 753 ;
C -1 ; WX 600 ; N mu ; B 72 -157 572 426 ;
C -1 ; WX 600 ; N igrave ; B 95 0 515 672 ;
C -1 ; WX 600 ; N ohungarumlaut ; B 102 -15 723 672 ;
C -1 ; WX 600 ; N Eogonek ; B 53 -172 660 562 ;
C -1 ; WX 600 ; N dcroat ; B 85 -15 704 629 ;
C -1 ; WX 600 ; N threequarters ; B 73 -56 659 666 ;
C -1 ; WX 600 ; N Scedilla ; B 76 -151 650 580 ;
C -1 ; WX 600 ; N lcaron ; B 95 0 667 629 ;
C -1 ; WX 600 ; N Kcommaaccent ; B 38 -250 671 562 ;
C -1 ; WX 600 ; N Lacute ; B 47 0 607 805 ;
C -1 ; WX 600 ; N trademark ; B 75 263 742 562 ;
C -1 ; WX 600 ; N edotaccent ; B 106 -15 598 620 ;
C -1 ; WX 600 ; N Igrave ; B 96 0 623 805 ;
C -1 ; WX 600 ; N Imacron ; B 96 0 628 698 ;
C -1 ; WX 600 ; N Lcaron ; B 47 0 632 562 ;
C -1 ; WX 600 ; N onehalf ; B 65 -57 669 665 ;
C -1 ; WX 600 ; N lessequal ; B 98 0 645 710 ;
C -1 ; WX 600 ; N ocircumflex ; B 102 -15 588 654 ;
C -1 ; WX 600 ; N ntilde ; B 26 0 629 606 ;
C -1 ; WX 600 ; N Uhungarumlaut ; B 125 -18 761 805 ;
C -1 ; WX 600 ; N Eacute ; B 53 0 670 805 ;
C -1 ; WX 600 ; N emacron ; B 106 -15 600 565 ;
C -1 ; WX 600 ; N gbreve ; B 61 -157 657 609 ;
C -1 ; WX 600 ; N onequarter ; B 65 -57 674 665 ;
C -1 ; WX 600 ; N Scaron ; B 76 -20 672 802 ;
C -1 ; WX 600 ; N Scommaaccent ; B 76 -250 650 580 ;
C -1 ; WX 600 ; N Ohungarumlaut ; B 94 -18 751 805 ;
C -1 ; WX 600 ; N degree ; B 214 269 576 622 ;
C -1 ; WX 600 ; N ograve ; B 102 -15 588 672 ;
C -1 ; WX 600 ; N Ccaron ; B 93 -18 672 802 ;
C -1 ; WX 600 ; N ugrave ; B 101 -15 572 672 ;
C -1 ; WX 600 ; N radical ; B 85 -15 765 792 ;
C -1 ; WX 600 ; N Dcaron ; B 43 0 645 802 ;
C -1 ; WX 600 ; N rcommaaccent ; B 60 -250 636 441 ;
C -1 ; WX 600 ; N Ntilde ; B 7 -13 712 729 ;
C -1 ; WX 600 ; N otilde ; B 102 -15 629 606 ;
C -1 ; WX 600 ; N Rcommaaccent ; B 38 -250 598 562 ;
C -1 ; WX 600 ; N Lcommaaccent ; B 47 -250 607 562 ;
C -1 ; WX 600 ; N Atilde ; B 3 0 655 729 ;
C -1 ; WX 600 ; N Aogonek ; B 3 -172 607 562 ;
C -1 ; WX 600 ; N Aring ; B 3 0 607 750 ;
C -1 ; WX 600 ; N Otilde ; B 94 -18 655 729 ;
C -1 ; WX 600 ; N zdotaccent ; B 99 0 593 620 ;
C -1 ; WX 600 ; N Ecaron ; B 53 0 660 802 ;
C -1 ; WX 600 ; N Iogonek ; B 96 -172 623 562 ;
C -1 ; WX 600 ; N kcommaaccent ; B 58 -250 633 629 ;
C -1 ; WX 600 ; N minus ; B 129 232 580 283 ;
C -1 ; WX 600 ; N Icircumflex ; B 96 0 623 787 ;
C -1 ; WX 600 ; N ncaron ; B 26 0 614 669 ;
C -1 ; WX 600 ; N tcommaaccent ; B 165 -250 561 561 ;
C -1 ; WX 600 ; N logicalnot ; B 155 108 591 369 ;
C -1 ; WX 600 ; N odieresis ; B 102 -15 588 620 ;
C -1 ; WX 600 ; N udieresis ; B 101 -15 575 620 ;
C -1 ; WX 600 ; N notequal ; B 43 -16 621 529 ;
C -1 ; WX 600 ; N gcommaaccent ; B 61 -157 657 708 ;
C -1 ; WX 600 ; N eth ; B 102 -15 639 629 ;
C -1 ; WX 600 ; N zcaron ; B 99 0 624 669 ;
C -1 ; WX 600 ; N ncommaaccent ; B 26 -250 585 441 ;
C -1 ; WX 600 ; N onesuperior ; B 231 249 491 622 ;
C -1 ; WX 600 ; N imacron ; B 95 0 543 565 ;
C -1 ; WX 600 ; N Euro ; B 0 0 0 0 ;
EndCharMetrics
EndFontMetrics

View File

@ -0,0 +1,342 @@
StartFontMetrics 4.1
Comment Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
Comment Creation Date: Thu May 1 17:27:09 1997
Comment UniqueID 43050
Comment VMusage 39754 50779
FontName Courier
FullName Courier
FamilyName Courier
Weight Medium
ItalicAngle 0
IsFixedPitch true
CharacterSet ExtendedRoman
FontBBox -23 -250 715 805
UnderlinePosition -100
UnderlineThickness 50
Version 003.000
Notice Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.
EncodingScheme AdobeStandardEncoding
CapHeight 562
XHeight 426
Ascender 629
Descender -157
StdHW 51
StdVW 51
StartCharMetrics 315
C 32 ; WX 600 ; N space ; B 0 0 0 0 ;
C 33 ; WX 600 ; N exclam ; B 236 -15 364 572 ;
C 34 ; WX 600 ; N quotedbl ; B 187 328 413 562 ;
C 35 ; WX 600 ; N numbersign ; B 93 -32 507 639 ;
C 36 ; WX 600 ; N dollar ; B 105 -126 496 662 ;
C 37 ; WX 600 ; N percent ; B 81 -15 518 622 ;
C 38 ; WX 600 ; N ampersand ; B 63 -15 538 543 ;
C 39 ; WX 600 ; N quoteright ; B 213 328 376 562 ;
C 40 ; WX 600 ; N parenleft ; B 269 -108 440 622 ;
C 41 ; WX 600 ; N parenright ; B 160 -108 331 622 ;
C 42 ; WX 600 ; N asterisk ; B 116 257 484 607 ;
C 43 ; WX 600 ; N plus ; B 80 44 520 470 ;
C 44 ; WX 600 ; N comma ; B 181 -112 344 122 ;
C 45 ; WX 600 ; N hyphen ; B 103 231 497 285 ;
C 46 ; WX 600 ; N period ; B 229 -15 371 109 ;
C 47 ; WX 600 ; N slash ; B 125 -80 475 629 ;
C 48 ; WX 600 ; N zero ; B 106 -15 494 622 ;
C 49 ; WX 600 ; N one ; B 96 0 505 622 ;
C 50 ; WX 600 ; N two ; B 70 0 471 622 ;
C 51 ; WX 600 ; N three ; B 75 -15 466 622 ;
C 52 ; WX 600 ; N four ; B 78 0 500 622 ;
C 53 ; WX 600 ; N five ; B 92 -15 497 607 ;
C 54 ; WX 600 ; N six ; B 111 -15 497 622 ;
C 55 ; WX 600 ; N seven ; B 82 0 483 607 ;
C 56 ; WX 600 ; N eight ; B 102 -15 498 622 ;
C 57 ; WX 600 ; N nine ; B 96 -15 489 622 ;
C 58 ; WX 600 ; N colon ; B 229 -15 371 385 ;
C 59 ; WX 600 ; N semicolon ; B 181 -112 371 385 ;
C 60 ; WX 600 ; N less ; B 41 42 519 472 ;
C 61 ; WX 600 ; N equal ; B 80 138 520 376 ;
C 62 ; WX 600 ; N greater ; B 66 42 544 472 ;
C 63 ; WX 600 ; N question ; B 129 -15 492 572 ;
C 64 ; WX 600 ; N at ; B 77 -15 533 622 ;
C 65 ; WX 600 ; N A ; B 3 0 597 562 ;
C 66 ; WX 600 ; N B ; B 43 0 559 562 ;
C 67 ; WX 600 ; N C ; B 41 -18 540 580 ;
C 68 ; WX 600 ; N D ; B 43 0 574 562 ;
C 69 ; WX 600 ; N E ; B 53 0 550 562 ;
C 70 ; WX 600 ; N F ; B 53 0 545 562 ;
C 71 ; WX 600 ; N G ; B 31 -18 575 580 ;
C 72 ; WX 600 ; N H ; B 32 0 568 562 ;
C 73 ; WX 600 ; N I ; B 96 0 504 562 ;
C 74 ; WX 600 ; N J ; B 34 -18 566 562 ;
C 75 ; WX 600 ; N K ; B 38 0 582 562 ;
C 76 ; WX 600 ; N L ; B 47 0 554 562 ;
C 77 ; WX 600 ; N M ; B 4 0 596 562 ;
C 78 ; WX 600 ; N N ; B 7 -13 593 562 ;
C 79 ; WX 600 ; N O ; B 43 -18 557 580 ;
C 80 ; WX 600 ; N P ; B 79 0 558 562 ;
C 81 ; WX 600 ; N Q ; B 43 -138 557 580 ;
C 82 ; WX 600 ; N R ; B 38 0 588 562 ;
C 83 ; WX 600 ; N S ; B 72 -20 529 580 ;
C 84 ; WX 600 ; N T ; B 38 0 563 562 ;
C 85 ; WX 600 ; N U ; B 17 -18 583 562 ;
C 86 ; WX 600 ; N V ; B -4 -13 604 562 ;
C 87 ; WX 600 ; N W ; B -3 -13 603 562 ;
C 88 ; WX 600 ; N X ; B 23 0 577 562 ;
C 89 ; WX 600 ; N Y ; B 24 0 576 562 ;
C 90 ; WX 600 ; N Z ; B 86 0 514 562 ;
C 91 ; WX 600 ; N bracketleft ; B 269 -108 442 622 ;
C 92 ; WX 600 ; N backslash ; B 118 -80 482 629 ;
C 93 ; WX 600 ; N bracketright ; B 158 -108 331 622 ;
C 94 ; WX 600 ; N asciicircum ; B 94 354 506 622 ;
C 95 ; WX 600 ; N underscore ; B 0 -125 600 -75 ;
C 96 ; WX 600 ; N quoteleft ; B 224 328 387 562 ;
C 97 ; WX 600 ; N a ; B 53 -15 559 441 ;
C 98 ; WX 600 ; N b ; B 14 -15 575 629 ;
C 99 ; WX 600 ; N c ; B 66 -15 529 441 ;
C 100 ; WX 600 ; N d ; B 45 -15 591 629 ;
C 101 ; WX 600 ; N e ; B 66 -15 548 441 ;
C 102 ; WX 600 ; N f ; B 114 0 531 629 ; L i fi ; L l fl ;
C 103 ; WX 600 ; N g ; B 45 -157 566 441 ;
C 104 ; WX 600 ; N h ; B 18 0 582 629 ;
C 105 ; WX 600 ; N i ; B 95 0 505 657 ;
C 106 ; WX 600 ; N j ; B 82 -157 410 657 ;
C 107 ; WX 600 ; N k ; B 43 0 580 629 ;
C 108 ; WX 600 ; N l ; B 95 0 505 629 ;
C 109 ; WX 600 ; N m ; B -5 0 605 441 ;
C 110 ; WX 600 ; N n ; B 26 0 575 441 ;
C 111 ; WX 600 ; N o ; B 62 -15 538 441 ;
C 112 ; WX 600 ; N p ; B 9 -157 555 441 ;
C 113 ; WX 600 ; N q ; B 45 -157 591 441 ;
C 114 ; WX 600 ; N r ; B 60 0 559 441 ;
C 115 ; WX 600 ; N s ; B 80 -15 513 441 ;
C 116 ; WX 600 ; N t ; B 87 -15 530 561 ;
C 117 ; WX 600 ; N u ; B 21 -15 562 426 ;
C 118 ; WX 600 ; N v ; B 10 -10 590 426 ;
C 119 ; WX 600 ; N w ; B -4 -10 604 426 ;
C 120 ; WX 600 ; N x ; B 20 0 580 426 ;
C 121 ; WX 600 ; N y ; B 7 -157 592 426 ;
C 122 ; WX 600 ; N z ; B 99 0 502 426 ;
C 123 ; WX 600 ; N braceleft ; B 182 -108 437 622 ;
C 124 ; WX 600 ; N bar ; B 275 -250 326 750 ;
C 125 ; WX 600 ; N braceright ; B 163 -108 418 622 ;
C 126 ; WX 600 ; N asciitilde ; B 63 197 540 320 ;
C 161 ; WX 600 ; N exclamdown ; B 236 -157 364 430 ;
C 162 ; WX 600 ; N cent ; B 96 -49 500 614 ;
C 163 ; WX 600 ; N sterling ; B 84 -21 521 611 ;
C 164 ; WX 600 ; N fraction ; B 92 -57 509 665 ;
C 165 ; WX 600 ; N yen ; B 26 0 574 562 ;
C 166 ; WX 600 ; N florin ; B 4 -143 539 622 ;
C 167 ; WX 600 ; N section ; B 113 -78 488 580 ;
C 168 ; WX 600 ; N currency ; B 73 58 527 506 ;
C 169 ; WX 600 ; N quotesingle ; B 259 328 341 562 ;
C 170 ; WX 600 ; N quotedblleft ; B 143 328 471 562 ;
C 171 ; WX 600 ; N guillemotleft ; B 37 70 563 446 ;
C 172 ; WX 600 ; N guilsinglleft ; B 149 70 451 446 ;
C 173 ; WX 600 ; N guilsinglright ; B 149 70 451 446 ;
C 174 ; WX 600 ; N fi ; B 3 0 597 629 ;
C 175 ; WX 600 ; N fl ; B 3 0 597 629 ;
C 177 ; WX 600 ; N endash ; B 75 231 525 285 ;
C 178 ; WX 600 ; N dagger ; B 141 -78 459 580 ;
C 179 ; WX 600 ; N daggerdbl ; B 141 -78 459 580 ;
C 180 ; WX 600 ; N periodcentered ; B 222 189 378 327 ;
C 182 ; WX 600 ; N paragraph ; B 50 -78 511 562 ;
C 183 ; WX 600 ; N bullet ; B 172 130 428 383 ;
C 184 ; WX 600 ; N quotesinglbase ; B 213 -134 376 100 ;
C 185 ; WX 600 ; N quotedblbase ; B 143 -134 457 100 ;
C 186 ; WX 600 ; N quotedblright ; B 143 328 457 562 ;
C 187 ; WX 600 ; N guillemotright ; B 37 70 563 446 ;
C 188 ; WX 600 ; N ellipsis ; B 37 -15 563 111 ;
C 189 ; WX 600 ; N perthousand ; B 3 -15 600 622 ;
C 191 ; WX 600 ; N questiondown ; B 108 -157 471 430 ;
C 193 ; WX 600 ; N grave ; B 151 497 378 672 ;
C 194 ; WX 600 ; N acute ; B 242 497 469 672 ;
C 195 ; WX 600 ; N circumflex ; B 124 477 476 654 ;
C 196 ; WX 600 ; N tilde ; B 105 489 503 606 ;
C 197 ; WX 600 ; N macron ; B 120 525 480 565 ;
C 198 ; WX 600 ; N breve ; B 153 501 447 609 ;
C 199 ; WX 600 ; N dotaccent ; B 249 537 352 640 ;
C 200 ; WX 600 ; N dieresis ; B 148 537 453 640 ;
C 202 ; WX 600 ; N ring ; B 218 463 382 627 ;
C 203 ; WX 600 ; N cedilla ; B 224 -151 362 10 ;
C 205 ; WX 600 ; N hungarumlaut ; B 133 497 540 672 ;
C 206 ; WX 600 ; N ogonek ; B 211 -172 407 4 ;
C 207 ; WX 600 ; N caron ; B 124 492 476 669 ;
C 208 ; WX 600 ; N emdash ; B 0 231 600 285 ;
C 225 ; WX 600 ; N AE ; B 3 0 550 562 ;
C 227 ; WX 600 ; N ordfeminine ; B 156 249 442 580 ;
C 232 ; WX 600 ; N Lslash ; B 47 0 554 562 ;
C 233 ; WX 600 ; N Oslash ; B 43 -80 557 629 ;
C 234 ; WX 600 ; N OE ; B 7 0 567 562 ;
C 235 ; WX 600 ; N ordmasculine ; B 157 249 443 580 ;
C 241 ; WX 600 ; N ae ; B 19 -15 570 441 ;
C 245 ; WX 600 ; N dotlessi ; B 95 0 505 426 ;
C 248 ; WX 600 ; N lslash ; B 95 0 505 629 ;
C 249 ; WX 600 ; N oslash ; B 62 -80 538 506 ;
C 250 ; WX 600 ; N oe ; B 19 -15 559 441 ;
C 251 ; WX 600 ; N germandbls ; B 48 -15 588 629 ;
C -1 ; WX 600 ; N Idieresis ; B 96 0 504 753 ;
C -1 ; WX 600 ; N eacute ; B 66 -15 548 672 ;
C -1 ; WX 600 ; N abreve ; B 53 -15 559 609 ;
C -1 ; WX 600 ; N uhungarumlaut ; B 21 -15 580 672 ;
C -1 ; WX 600 ; N ecaron ; B 66 -15 548 669 ;
C -1 ; WX 600 ; N Ydieresis ; B 24 0 576 753 ;
C -1 ; WX 600 ; N divide ; B 87 48 513 467 ;
C -1 ; WX 600 ; N Yacute ; B 24 0 576 805 ;
C -1 ; WX 600 ; N Acircumflex ; B 3 0 597 787 ;
C -1 ; WX 600 ; N aacute ; B 53 -15 559 672 ;
C -1 ; WX 600 ; N Ucircumflex ; B 17 -18 583 787 ;
C -1 ; WX 600 ; N yacute ; B 7 -157 592 672 ;
C -1 ; WX 600 ; N scommaaccent ; B 80 -250 513 441 ;
C -1 ; WX 600 ; N ecircumflex ; B 66 -15 548 654 ;
C -1 ; WX 600 ; N Uring ; B 17 -18 583 760 ;
C -1 ; WX 600 ; N Udieresis ; B 17 -18 583 753 ;
C -1 ; WX 600 ; N aogonek ; B 53 -172 587 441 ;
C -1 ; WX 600 ; N Uacute ; B 17 -18 583 805 ;
C -1 ; WX 600 ; N uogonek ; B 21 -172 590 426 ;
C -1 ; WX 600 ; N Edieresis ; B 53 0 550 753 ;
C -1 ; WX 600 ; N Dcroat ; B 30 0 574 562 ;
C -1 ; WX 600 ; N commaaccent ; B 198 -250 335 -58 ;
C -1 ; WX 600 ; N copyright ; B 0 -18 600 580 ;
C -1 ; WX 600 ; N Emacron ; B 53 0 550 698 ;
C -1 ; WX 600 ; N ccaron ; B 66 -15 529 669 ;
C -1 ; WX 600 ; N aring ; B 53 -15 559 627 ;
C -1 ; WX 600 ; N Ncommaaccent ; B 7 -250 593 562 ;
C -1 ; WX 600 ; N lacute ; B 95 0 505 805 ;
C -1 ; WX 600 ; N agrave ; B 53 -15 559 672 ;
C -1 ; WX 600 ; N Tcommaaccent ; B 38 -250 563 562 ;
C -1 ; WX 600 ; N Cacute ; B 41 -18 540 805 ;
C -1 ; WX 600 ; N atilde ; B 53 -15 559 606 ;
C -1 ; WX 600 ; N Edotaccent ; B 53 0 550 753 ;
C -1 ; WX 600 ; N scaron ; B 80 -15 513 669 ;
C -1 ; WX 600 ; N scedilla ; B 80 -151 513 441 ;
C -1 ; WX 600 ; N iacute ; B 95 0 505 672 ;
C -1 ; WX 600 ; N lozenge ; B 18 0 443 706 ;
C -1 ; WX 600 ; N Rcaron ; B 38 0 588 802 ;
C -1 ; WX 600 ; N Gcommaaccent ; B 31 -250 575 580 ;
C -1 ; WX 600 ; N ucircumflex ; B 21 -15 562 654 ;
C -1 ; WX 600 ; N acircumflex ; B 53 -15 559 654 ;
C -1 ; WX 600 ; N Amacron ; B 3 0 597 698 ;
C -1 ; WX 600 ; N rcaron ; B 60 0 559 669 ;
C -1 ; WX 600 ; N ccedilla ; B 66 -151 529 441 ;
C -1 ; WX 600 ; N Zdotaccent ; B 86 0 514 753 ;
C -1 ; WX 600 ; N Thorn ; B 79 0 538 562 ;
C -1 ; WX 600 ; N Omacron ; B 43 -18 557 698 ;
C -1 ; WX 600 ; N Racute ; B 38 0 588 805 ;
C -1 ; WX 600 ; N Sacute ; B 72 -20 529 805 ;
C -1 ; WX 600 ; N dcaron ; B 45 -15 715 629 ;
C -1 ; WX 600 ; N Umacron ; B 17 -18 583 698 ;
C -1 ; WX 600 ; N uring ; B 21 -15 562 627 ;
C -1 ; WX 600 ; N threesuperior ; B 155 240 406 622 ;
C -1 ; WX 600 ; N Ograve ; B 43 -18 557 805 ;
C -1 ; WX 600 ; N Agrave ; B 3 0 597 805 ;
C -1 ; WX 600 ; N Abreve ; B 3 0 597 732 ;
C -1 ; WX 600 ; N multiply ; B 87 43 515 470 ;
C -1 ; WX 600 ; N uacute ; B 21 -15 562 672 ;
C -1 ; WX 600 ; N Tcaron ; B 38 0 563 802 ;
C -1 ; WX 600 ; N partialdiff ; B 17 -38 459 710 ;
C -1 ; WX 600 ; N ydieresis ; B 7 -157 592 620 ;
C -1 ; WX 600 ; N Nacute ; B 7 -13 593 805 ;
C -1 ; WX 600 ; N icircumflex ; B 94 0 505 654 ;
C -1 ; WX 600 ; N Ecircumflex ; B 53 0 550 787 ;
C -1 ; WX 600 ; N adieresis ; B 53 -15 559 620 ;
C -1 ; WX 600 ; N edieresis ; B 66 -15 548 620 ;
C -1 ; WX 600 ; N cacute ; B 66 -15 529 672 ;
C -1 ; WX 600 ; N nacute ; B 26 0 575 672 ;
C -1 ; WX 600 ; N umacron ; B 21 -15 562 565 ;
C -1 ; WX 600 ; N Ncaron ; B 7 -13 593 802 ;
C -1 ; WX 600 ; N Iacute ; B 96 0 504 805 ;
C -1 ; WX 600 ; N plusminus ; B 87 44 513 558 ;
C -1 ; WX 600 ; N brokenbar ; B 275 -175 326 675 ;
C -1 ; WX 600 ; N registered ; B 0 -18 600 580 ;
C -1 ; WX 600 ; N Gbreve ; B 31 -18 575 732 ;
C -1 ; WX 600 ; N Idotaccent ; B 96 0 504 753 ;
C -1 ; WX 600 ; N summation ; B 15 -10 585 706 ;
C -1 ; WX 600 ; N Egrave ; B 53 0 550 805 ;
C -1 ; WX 600 ; N racute ; B 60 0 559 672 ;
C -1 ; WX 600 ; N omacron ; B 62 -15 538 565 ;
C -1 ; WX 600 ; N Zacute ; B 86 0 514 805 ;
C -1 ; WX 600 ; N Zcaron ; B 86 0 514 802 ;
C -1 ; WX 600 ; N greaterequal ; B 98 0 502 710 ;
C -1 ; WX 600 ; N Eth ; B 30 0 574 562 ;
C -1 ; WX 600 ; N Ccedilla ; B 41 -151 540 580 ;
C -1 ; WX 600 ; N lcommaaccent ; B 95 -250 505 629 ;
C -1 ; WX 600 ; N tcaron ; B 87 -15 530 717 ;
C -1 ; WX 600 ; N eogonek ; B 66 -172 548 441 ;
C -1 ; WX 600 ; N Uogonek ; B 17 -172 583 562 ;
C -1 ; WX 600 ; N Aacute ; B 3 0 597 805 ;
C -1 ; WX 600 ; N Adieresis ; B 3 0 597 753 ;
C -1 ; WX 600 ; N egrave ; B 66 -15 548 672 ;
C -1 ; WX 600 ; N zacute ; B 99 0 502 672 ;
C -1 ; WX 600 ; N iogonek ; B 95 -172 505 657 ;
C -1 ; WX 600 ; N Oacute ; B 43 -18 557 805 ;
C -1 ; WX 600 ; N oacute ; B 62 -15 538 672 ;
C -1 ; WX 600 ; N amacron ; B 53 -15 559 565 ;
C -1 ; WX 600 ; N sacute ; B 80 -15 513 672 ;
C -1 ; WX 600 ; N idieresis ; B 95 0 505 620 ;
C -1 ; WX 600 ; N Ocircumflex ; B 43 -18 557 787 ;
C -1 ; WX 600 ; N Ugrave ; B 17 -18 583 805 ;
C -1 ; WX 600 ; N Delta ; B 6 0 598 688 ;
C -1 ; WX 600 ; N thorn ; B -6 -157 555 629 ;
C -1 ; WX 600 ; N twosuperior ; B 177 249 424 622 ;
C -1 ; WX 600 ; N Odieresis ; B 43 -18 557 753 ;
C -1 ; WX 600 ; N mu ; B 21 -157 562 426 ;
C -1 ; WX 600 ; N igrave ; B 95 0 505 672 ;
C -1 ; WX 600 ; N ohungarumlaut ; B 62 -15 580 672 ;
C -1 ; WX 600 ; N Eogonek ; B 53 -172 561 562 ;
C -1 ; WX 600 ; N dcroat ; B 45 -15 591 629 ;
C -1 ; WX 600 ; N threequarters ; B 8 -56 593 666 ;
C -1 ; WX 600 ; N Scedilla ; B 72 -151 529 580 ;
C -1 ; WX 600 ; N lcaron ; B 95 0 533 629 ;
C -1 ; WX 600 ; N Kcommaaccent ; B 38 -250 582 562 ;
C -1 ; WX 600 ; N Lacute ; B 47 0 554 805 ;
C -1 ; WX 600 ; N trademark ; B -23 263 623 562 ;
C -1 ; WX 600 ; N edotaccent ; B 66 -15 548 620 ;
C -1 ; WX 600 ; N Igrave ; B 96 0 504 805 ;
C -1 ; WX 600 ; N Imacron ; B 96 0 504 698 ;
C -1 ; WX 600 ; N Lcaron ; B 47 0 554 562 ;
C -1 ; WX 600 ; N onehalf ; B 0 -57 611 665 ;
C -1 ; WX 600 ; N lessequal ; B 98 0 502 710 ;
C -1 ; WX 600 ; N ocircumflex ; B 62 -15 538 654 ;
C -1 ; WX 600 ; N ntilde ; B 26 0 575 606 ;
C -1 ; WX 600 ; N Uhungarumlaut ; B 17 -18 590 805 ;
C -1 ; WX 600 ; N Eacute ; B 53 0 550 805 ;
C -1 ; WX 600 ; N emacron ; B 66 -15 548 565 ;
C -1 ; WX 600 ; N gbreve ; B 45 -157 566 609 ;
C -1 ; WX 600 ; N onequarter ; B 0 -57 600 665 ;
C -1 ; WX 600 ; N Scaron ; B 72 -20 529 802 ;
C -1 ; WX 600 ; N Scommaaccent ; B 72 -250 529 580 ;
C -1 ; WX 600 ; N Ohungarumlaut ; B 43 -18 580 805 ;
C -1 ; WX 600 ; N degree ; B 123 269 477 622 ;
C -1 ; WX 600 ; N ograve ; B 62 -15 538 672 ;
C -1 ; WX 600 ; N Ccaron ; B 41 -18 540 802 ;
C -1 ; WX 600 ; N ugrave ; B 21 -15 562 672 ;
C -1 ; WX 600 ; N radical ; B 3 -15 597 792 ;
C -1 ; WX 600 ; N Dcaron ; B 43 0 574 802 ;
C -1 ; WX 600 ; N rcommaaccent ; B 60 -250 559 441 ;
C -1 ; WX 600 ; N Ntilde ; B 7 -13 593 729 ;
C -1 ; WX 600 ; N otilde ; B 62 -15 538 606 ;
C -1 ; WX 600 ; N Rcommaaccent ; B 38 -250 588 562 ;
C -1 ; WX 600 ; N Lcommaaccent ; B 47 -250 554 562 ;
C -1 ; WX 600 ; N Atilde ; B 3 0 597 729 ;
C -1 ; WX 600 ; N Aogonek ; B 3 -172 608 562 ;
C -1 ; WX 600 ; N Aring ; B 3 0 597 750 ;
C -1 ; WX 600 ; N Otilde ; B 43 -18 557 729 ;
C -1 ; WX 600 ; N zdotaccent ; B 99 0 502 620 ;
C -1 ; WX 600 ; N Ecaron ; B 53 0 550 802 ;
C -1 ; WX 600 ; N Iogonek ; B 96 -172 504 562 ;
C -1 ; WX 600 ; N kcommaaccent ; B 43 -250 580 629 ;
C -1 ; WX 600 ; N minus ; B 80 232 520 283 ;
C -1 ; WX 600 ; N Icircumflex ; B 96 0 504 787 ;
C -1 ; WX 600 ; N ncaron ; B 26 0 575 669 ;
C -1 ; WX 600 ; N tcommaaccent ; B 87 -250 530 561 ;
C -1 ; WX 600 ; N logicalnot ; B 87 108 513 369 ;
C -1 ; WX 600 ; N odieresis ; B 62 -15 538 620 ;
C -1 ; WX 600 ; N udieresis ; B 21 -15 562 620 ;
C -1 ; WX 600 ; N notequal ; B 15 -16 540 529 ;
C -1 ; WX 600 ; N gcommaaccent ; B 45 -157 566 708 ;
C -1 ; WX 600 ; N eth ; B 62 -15 538 629 ;
C -1 ; WX 600 ; N zcaron ; B 99 0 502 669 ;
C -1 ; WX 600 ; N ncommaaccent ; B 26 -250 575 441 ;
C -1 ; WX 600 ; N onesuperior ; B 172 249 428 622 ;
C -1 ; WX 600 ; N imacron ; B 95 0 505 565 ;
C -1 ; WX 600 ; N Euro ; B 0 0 0 0 ;
EndCharMetrics
EndFontMetrics

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 4"> <title>Core 14 AFM Files - ReadMe</title> </head> <body bgcolor="white"> <font color="white">or</font> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td width="40"></td> <td width="300">This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. <font color="white">Col</font></td> </tr> </table> </body> </html>

View File

@ -0,0 +1,213 @@
StartFontMetrics 4.1
Comment Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All rights reserved.
Comment Creation Date: Thu May 1 15:12:25 1997
Comment UniqueID 43064
Comment VMusage 30820 39997
FontName Symbol
FullName Symbol
FamilyName Symbol
Weight Medium
ItalicAngle 0
IsFixedPitch false
CharacterSet Special
FontBBox -180 -293 1090 1010
UnderlinePosition -100
UnderlineThickness 50
Version 001.008
Notice Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All rights reserved.
EncodingScheme FontSpecific
StdHW 92
StdVW 85
StartCharMetrics 190
C 32 ; WX 250 ; N space ; B 0 0 0 0 ;
C 33 ; WX 333 ; N exclam ; B 128 -17 240 672 ;
C 34 ; WX 713 ; N universal ; B 31 0 681 705 ;
C 35 ; WX 500 ; N numbersign ; B 20 -16 481 673 ;
C 36 ; WX 549 ; N existential ; B 25 0 478 707 ;
C 37 ; WX 833 ; N percent ; B 63 -36 771 655 ;
C 38 ; WX 778 ; N ampersand ; B 41 -18 750 661 ;
C 39 ; WX 439 ; N suchthat ; B 48 -17 414 500 ;
C 40 ; WX 333 ; N parenleft ; B 53 -191 300 673 ;
C 41 ; WX 333 ; N parenright ; B 30 -191 277 673 ;
C 42 ; WX 500 ; N asteriskmath ; B 65 134 427 551 ;
C 43 ; WX 549 ; N plus ; B 10 0 539 533 ;
C 44 ; WX 250 ; N comma ; B 56 -152 194 104 ;
C 45 ; WX 549 ; N minus ; B 11 233 535 288 ;
C 46 ; WX 250 ; N period ; B 69 -17 181 95 ;
C 47 ; WX 278 ; N slash ; B 0 -18 254 646 ;
C 48 ; WX 500 ; N zero ; B 24 -14 476 685 ;
C 49 ; WX 500 ; N one ; B 117 0 390 673 ;
C 50 ; WX 500 ; N two ; B 25 0 475 685 ;
C 51 ; WX 500 ; N three ; B 43 -14 435 685 ;
C 52 ; WX 500 ; N four ; B 15 0 469 685 ;
C 53 ; WX 500 ; N five ; B 32 -14 445 690 ;
C 54 ; WX 500 ; N six ; B 34 -14 468 685 ;
C 55 ; WX 500 ; N seven ; B 24 -16 448 673 ;
C 56 ; WX 500 ; N eight ; B 56 -14 445 685 ;
C 57 ; WX 500 ; N nine ; B 30 -18 459 685 ;
C 58 ; WX 278 ; N colon ; B 81 -17 193 460 ;
C 59 ; WX 278 ; N semicolon ; B 83 -152 221 460 ;
C 60 ; WX 549 ; N less ; B 26 0 523 522 ;
C 61 ; WX 549 ; N equal ; B 11 141 537 390 ;
C 62 ; WX 549 ; N greater ; B 26 0 523 522 ;
C 63 ; WX 444 ; N question ; B 70 -17 412 686 ;
C 64 ; WX 549 ; N congruent ; B 11 0 537 475 ;
C 65 ; WX 722 ; N Alpha ; B 4 0 684 673 ;
C 66 ; WX 667 ; N Beta ; B 29 0 592 673 ;
C 67 ; WX 722 ; N Chi ; B -9 0 704 673 ;
C 68 ; WX 612 ; N Delta ; B 6 0 608 688 ;
C 69 ; WX 611 ; N Epsilon ; B 32 0 617 673 ;
C 70 ; WX 763 ; N Phi ; B 26 0 741 673 ;
C 71 ; WX 603 ; N Gamma ; B 24 0 609 673 ;
C 72 ; WX 722 ; N Eta ; B 39 0 729 673 ;
C 73 ; WX 333 ; N Iota ; B 32 0 316 673 ;
C 74 ; WX 631 ; N theta1 ; B 18 -18 623 689 ;
C 75 ; WX 722 ; N Kappa ; B 35 0 722 673 ;
C 76 ; WX 686 ; N Lambda ; B 6 0 680 688 ;
C 77 ; WX 889 ; N Mu ; B 28 0 887 673 ;
C 78 ; WX 722 ; N Nu ; B 29 -8 720 673 ;
C 79 ; WX 722 ; N Omicron ; B 41 -17 715 685 ;
C 80 ; WX 768 ; N Pi ; B 25 0 745 673 ;
C 81 ; WX 741 ; N Theta ; B 41 -17 715 685 ;
C 82 ; WX 556 ; N Rho ; B 28 0 563 673 ;
C 83 ; WX 592 ; N Sigma ; B 5 0 589 673 ;
C 84 ; WX 611 ; N Tau ; B 33 0 607 673 ;
C 85 ; WX 690 ; N Upsilon ; B -8 0 694 673 ;
C 86 ; WX 439 ; N sigma1 ; B 40 -233 436 500 ;
C 87 ; WX 768 ; N Omega ; B 34 0 736 688 ;
C 88 ; WX 645 ; N Xi ; B 40 0 599 673 ;
C 89 ; WX 795 ; N Psi ; B 15 0 781 684 ;
C 90 ; WX 611 ; N Zeta ; B 44 0 636 673 ;
C 91 ; WX 333 ; N bracketleft ; B 86 -155 299 674 ;
C 92 ; WX 863 ; N therefore ; B 163 0 701 487 ;
C 93 ; WX 333 ; N bracketright ; B 33 -155 246 674 ;
C 94 ; WX 658 ; N perpendicular ; B 15 0 652 674 ;
C 95 ; WX 500 ; N underscore ; B -2 -125 502 -75 ;
C 96 ; WX 500 ; N radicalex ; B 480 881 1090 917 ;
C 97 ; WX 631 ; N alpha ; B 41 -18 622 500 ;
C 98 ; WX 549 ; N beta ; B 61 -223 515 741 ;
C 99 ; WX 549 ; N chi ; B 12 -231 522 499 ;
C 100 ; WX 494 ; N delta ; B 40 -19 481 740 ;
C 101 ; WX 439 ; N epsilon ; B 22 -19 427 502 ;
C 102 ; WX 521 ; N phi ; B 28 -224 492 673 ;
C 103 ; WX 411 ; N gamma ; B 5 -225 484 499 ;
C 104 ; WX 603 ; N eta ; B 0 -202 527 514 ;
C 105 ; WX 329 ; N iota ; B 0 -17 301 503 ;
C 106 ; WX 603 ; N phi1 ; B 36 -224 587 499 ;
C 107 ; WX 549 ; N kappa ; B 33 0 558 501 ;
C 108 ; WX 549 ; N lambda ; B 24 -17 548 739 ;
C 109 ; WX 576 ; N mu ; B 33 -223 567 500 ;
C 110 ; WX 521 ; N nu ; B -9 -16 475 507 ;
C 111 ; WX 549 ; N omicron ; B 35 -19 501 499 ;
C 112 ; WX 549 ; N pi ; B 10 -19 530 487 ;
C 113 ; WX 521 ; N theta ; B 43 -17 485 690 ;
C 114 ; WX 549 ; N rho ; B 50 -230 490 499 ;
C 115 ; WX 603 ; N sigma ; B 30 -21 588 500 ;
C 116 ; WX 439 ; N tau ; B 10 -19 418 500 ;
C 117 ; WX 576 ; N upsilon ; B 7 -18 535 507 ;
C 118 ; WX 713 ; N omega1 ; B 12 -18 671 583 ;
C 119 ; WX 686 ; N omega ; B 42 -17 684 500 ;
C 120 ; WX 493 ; N xi ; B 27 -224 469 766 ;
C 121 ; WX 686 ; N psi ; B 12 -228 701 500 ;
C 122 ; WX 494 ; N zeta ; B 60 -225 467 756 ;
C 123 ; WX 480 ; N braceleft ; B 58 -183 397 673 ;
C 124 ; WX 200 ; N bar ; B 65 -293 135 707 ;
C 125 ; WX 480 ; N braceright ; B 79 -183 418 673 ;
C 126 ; WX 549 ; N similar ; B 17 203 529 307 ;
C 160 ; WX 750 ; N Euro ; B 20 -12 714 685 ;
C 161 ; WX 620 ; N Upsilon1 ; B -2 0 610 685 ;
C 162 ; WX 247 ; N minute ; B 27 459 228 735 ;
C 163 ; WX 549 ; N lessequal ; B 29 0 526 639 ;
C 164 ; WX 167 ; N fraction ; B -180 -12 340 677 ;
C 165 ; WX 713 ; N infinity ; B 26 124 688 404 ;
C 166 ; WX 500 ; N florin ; B 2 -193 494 686 ;
C 167 ; WX 753 ; N club ; B 86 -26 660 533 ;
C 168 ; WX 753 ; N diamond ; B 142 -36 600 550 ;
C 169 ; WX 753 ; N heart ; B 117 -33 631 532 ;
C 170 ; WX 753 ; N spade ; B 113 -36 629 548 ;
C 171 ; WX 1042 ; N arrowboth ; B 24 -15 1024 511 ;
C 172 ; WX 987 ; N arrowleft ; B 32 -15 942 511 ;
C 173 ; WX 603 ; N arrowup ; B 45 0 571 910 ;
C 174 ; WX 987 ; N arrowright ; B 49 -15 959 511 ;
C 175 ; WX 603 ; N arrowdown ; B 45 -22 571 888 ;
C 176 ; WX 400 ; N degree ; B 50 385 350 685 ;
C 177 ; WX 549 ; N plusminus ; B 10 0 539 645 ;
C 178 ; WX 411 ; N second ; B 20 459 413 737 ;
C 179 ; WX 549 ; N greaterequal ; B 29 0 526 639 ;
C 180 ; WX 549 ; N multiply ; B 17 8 533 524 ;
C 181 ; WX 713 ; N proportional ; B 27 123 639 404 ;
C 182 ; WX 494 ; N partialdiff ; B 26 -20 462 746 ;
C 183 ; WX 460 ; N bullet ; B 50 113 410 473 ;
C 184 ; WX 549 ; N divide ; B 10 71 536 456 ;
C 185 ; WX 549 ; N notequal ; B 15 -25 540 549 ;
C 186 ; WX 549 ; N equivalence ; B 14 82 538 443 ;
C 187 ; WX 549 ; N approxequal ; B 14 135 527 394 ;
C 188 ; WX 1000 ; N ellipsis ; B 111 -17 889 95 ;
C 189 ; WX 603 ; N arrowvertex ; B 280 -120 336 1010 ;
C 190 ; WX 1000 ; N arrowhorizex ; B -60 220 1050 276 ;
C 191 ; WX 658 ; N carriagereturn ; B 15 -16 602 629 ;
C 192 ; WX 823 ; N aleph ; B 175 -18 661 658 ;
C 193 ; WX 686 ; N Ifraktur ; B 10 -53 578 740 ;
C 194 ; WX 795 ; N Rfraktur ; B 26 -15 759 734 ;
C 195 ; WX 987 ; N weierstrass ; B 159 -211 870 573 ;
C 196 ; WX 768 ; N circlemultiply ; B 43 -17 733 673 ;
C 197 ; WX 768 ; N circleplus ; B 43 -15 733 675 ;
C 198 ; WX 823 ; N emptyset ; B 39 -24 781 719 ;
C 199 ; WX 768 ; N intersection ; B 40 0 732 509 ;
C 200 ; WX 768 ; N union ; B 40 -17 732 492 ;
C 201 ; WX 713 ; N propersuperset ; B 20 0 673 470 ;
C 202 ; WX 713 ; N reflexsuperset ; B 20 -125 673 470 ;
C 203 ; WX 713 ; N notsubset ; B 36 -70 690 540 ;
C 204 ; WX 713 ; N propersubset ; B 37 0 690 470 ;
C 205 ; WX 713 ; N reflexsubset ; B 37 -125 690 470 ;
C 206 ; WX 713 ; N element ; B 45 0 505 468 ;
C 207 ; WX 713 ; N notelement ; B 45 -58 505 555 ;
C 208 ; WX 768 ; N angle ; B 26 0 738 673 ;
C 209 ; WX 713 ; N gradient ; B 36 -19 681 718 ;
C 210 ; WX 790 ; N registerserif ; B 50 -17 740 673 ;
C 211 ; WX 790 ; N copyrightserif ; B 51 -15 741 675 ;
C 212 ; WX 890 ; N trademarkserif ; B 18 293 855 673 ;
C 213 ; WX 823 ; N product ; B 25 -101 803 751 ;
C 214 ; WX 549 ; N radical ; B 10 -38 515 917 ;
C 215 ; WX 250 ; N dotmath ; B 69 210 169 310 ;
C 216 ; WX 713 ; N logicalnot ; B 15 0 680 288 ;
C 217 ; WX 603 ; N logicaland ; B 23 0 583 454 ;
C 218 ; WX 603 ; N logicalor ; B 30 0 578 477 ;
C 219 ; WX 1042 ; N arrowdblboth ; B 27 -20 1023 510 ;
C 220 ; WX 987 ; N arrowdblleft ; B 30 -15 939 513 ;
C 221 ; WX 603 ; N arrowdblup ; B 39 2 567 911 ;
C 222 ; WX 987 ; N arrowdblright ; B 45 -20 954 508 ;
C 223 ; WX 603 ; N arrowdbldown ; B 44 -19 572 890 ;
C 224 ; WX 494 ; N lozenge ; B 18 0 466 745 ;
C 225 ; WX 329 ; N angleleft ; B 25 -198 306 746 ;
C 226 ; WX 790 ; N registersans ; B 50 -20 740 670 ;
C 227 ; WX 790 ; N copyrightsans ; B 49 -15 739 675 ;
C 228 ; WX 786 ; N trademarksans ; B 5 293 725 673 ;
C 229 ; WX 713 ; N summation ; B 14 -108 695 752 ;
C 230 ; WX 384 ; N parenlefttp ; B 24 -293 436 926 ;
C 231 ; WX 384 ; N parenleftex ; B 24 -85 108 925 ;
C 232 ; WX 384 ; N parenleftbt ; B 24 -293 436 926 ;
C 233 ; WX 384 ; N bracketlefttp ; B 0 -80 349 926 ;
C 234 ; WX 384 ; N bracketleftex ; B 0 -79 77 925 ;
C 235 ; WX 384 ; N bracketleftbt ; B 0 -80 349 926 ;
C 236 ; WX 494 ; N bracelefttp ; B 209 -85 445 925 ;
C 237 ; WX 494 ; N braceleftmid ; B 20 -85 284 935 ;
C 238 ; WX 494 ; N braceleftbt ; B 209 -75 445 935 ;
C 239 ; WX 494 ; N braceex ; B 209 -85 284 935 ;
C 241 ; WX 329 ; N angleright ; B 21 -198 302 746 ;
C 242 ; WX 274 ; N integral ; B 2 -107 291 916 ;
C 243 ; WX 686 ; N integraltp ; B 308 -88 675 920 ;
C 244 ; WX 686 ; N integralex ; B 308 -88 378 975 ;
C 245 ; WX 686 ; N integralbt ; B 11 -87 378 921 ;
C 246 ; WX 384 ; N parenrighttp ; B 54 -293 466 926 ;
C 247 ; WX 384 ; N parenrightex ; B 382 -85 466 925 ;
C 248 ; WX 384 ; N parenrightbt ; B 54 -293 466 926 ;
C 249 ; WX 384 ; N bracketrighttp ; B 22 -80 371 926 ;
C 250 ; WX 384 ; N bracketrightex ; B 294 -79 371 925 ;
C 251 ; WX 384 ; N bracketrightbt ; B 22 -80 371 926 ;
C 252 ; WX 494 ; N bracerighttp ; B 48 -85 284 925 ;
C 253 ; WX 494 ; N bracerightmid ; B 209 -85 473 935 ;
C 254 ; WX 494 ; N bracerightbt ; B 48 -75 284 935 ;
C -1 ; WX 790 ; N apple ; B 56 -3 733 808 ;
EndCharMetrics
EndFontMetrics

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,225 @@
StartFontMetrics 4.1
Comment Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.
Comment Creation Date: Thu May 1 15:14:13 1997
Comment UniqueID 43082
Comment VMusage 45775 55535
FontName ZapfDingbats
FullName ITC Zapf Dingbats
FamilyName ZapfDingbats
Weight Medium
ItalicAngle 0
IsFixedPitch false
CharacterSet Special
FontBBox -1 -143 981 820
UnderlinePosition -100
UnderlineThickness 50
Version 002.000
Notice Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.ITC Zapf Dingbats is a registered trademark of International Typeface Corporation.
EncodingScheme FontSpecific
StdHW 28
StdVW 90
StartCharMetrics 202
C 32 ; WX 278 ; N space ; B 0 0 0 0 ;
C 33 ; WX 974 ; N a1 ; B 35 72 939 621 ;
C 34 ; WX 961 ; N a2 ; B 35 81 927 611 ;
C 35 ; WX 974 ; N a202 ; B 35 72 939 621 ;
C 36 ; WX 980 ; N a3 ; B 35 0 945 692 ;
C 37 ; WX 719 ; N a4 ; B 34 139 685 566 ;
C 38 ; WX 789 ; N a5 ; B 35 -14 755 705 ;
C 39 ; WX 790 ; N a119 ; B 35 -14 755 705 ;
C 40 ; WX 791 ; N a118 ; B 35 -13 761 705 ;
C 41 ; WX 690 ; N a117 ; B 34 138 655 553 ;
C 42 ; WX 960 ; N a11 ; B 35 123 925 568 ;
C 43 ; WX 939 ; N a12 ; B 35 134 904 559 ;
C 44 ; WX 549 ; N a13 ; B 29 -11 516 705 ;
C 45 ; WX 855 ; N a14 ; B 34 59 820 632 ;
C 46 ; WX 911 ; N a15 ; B 35 50 876 642 ;
C 47 ; WX 933 ; N a16 ; B 35 139 899 550 ;
C 48 ; WX 911 ; N a105 ; B 35 50 876 642 ;
C 49 ; WX 945 ; N a17 ; B 35 139 909 553 ;
C 50 ; WX 974 ; N a18 ; B 35 104 938 587 ;
C 51 ; WX 755 ; N a19 ; B 34 -13 721 705 ;
C 52 ; WX 846 ; N a20 ; B 36 -14 811 705 ;
C 53 ; WX 762 ; N a21 ; B 35 0 727 692 ;
C 54 ; WX 761 ; N a22 ; B 35 0 727 692 ;
C 55 ; WX 571 ; N a23 ; B -1 -68 571 661 ;
C 56 ; WX 677 ; N a24 ; B 36 -13 642 705 ;
C 57 ; WX 763 ; N a25 ; B 35 0 728 692 ;
C 58 ; WX 760 ; N a26 ; B 35 0 726 692 ;
C 59 ; WX 759 ; N a27 ; B 35 0 725 692 ;
C 60 ; WX 754 ; N a28 ; B 35 0 720 692 ;
C 61 ; WX 494 ; N a6 ; B 35 0 460 692 ;
C 62 ; WX 552 ; N a7 ; B 35 0 517 692 ;
C 63 ; WX 537 ; N a8 ; B 35 0 503 692 ;
C 64 ; WX 577 ; N a9 ; B 35 96 542 596 ;
C 65 ; WX 692 ; N a10 ; B 35 -14 657 705 ;
C 66 ; WX 786 ; N a29 ; B 35 -14 751 705 ;
C 67 ; WX 788 ; N a30 ; B 35 -14 752 705 ;
C 68 ; WX 788 ; N a31 ; B 35 -14 753 705 ;
C 69 ; WX 790 ; N a32 ; B 35 -14 756 705 ;
C 70 ; WX 793 ; N a33 ; B 35 -13 759 705 ;
C 71 ; WX 794 ; N a34 ; B 35 -13 759 705 ;
C 72 ; WX 816 ; N a35 ; B 35 -14 782 705 ;
C 73 ; WX 823 ; N a36 ; B 35 -14 787 705 ;
C 74 ; WX 789 ; N a37 ; B 35 -14 754 705 ;
C 75 ; WX 841 ; N a38 ; B 35 -14 807 705 ;
C 76 ; WX 823 ; N a39 ; B 35 -14 789 705 ;
C 77 ; WX 833 ; N a40 ; B 35 -14 798 705 ;
C 78 ; WX 816 ; N a41 ; B 35 -13 782 705 ;
C 79 ; WX 831 ; N a42 ; B 35 -14 796 705 ;
C 80 ; WX 923 ; N a43 ; B 35 -14 888 705 ;
C 81 ; WX 744 ; N a44 ; B 35 0 710 692 ;
C 82 ; WX 723 ; N a45 ; B 35 0 688 692 ;
C 83 ; WX 749 ; N a46 ; B 35 0 714 692 ;
C 84 ; WX 790 ; N a47 ; B 34 -14 756 705 ;
C 85 ; WX 792 ; N a48 ; B 35 -14 758 705 ;
C 86 ; WX 695 ; N a49 ; B 35 -14 661 706 ;
C 87 ; WX 776 ; N a50 ; B 35 -6 741 699 ;
C 88 ; WX 768 ; N a51 ; B 35 -7 734 699 ;
C 89 ; WX 792 ; N a52 ; B 35 -14 757 705 ;
C 90 ; WX 759 ; N a53 ; B 35 0 725 692 ;
C 91 ; WX 707 ; N a54 ; B 35 -13 672 704 ;
C 92 ; WX 708 ; N a55 ; B 35 -14 672 705 ;
C 93 ; WX 682 ; N a56 ; B 35 -14 647 705 ;
C 94 ; WX 701 ; N a57 ; B 35 -14 666 705 ;
C 95 ; WX 826 ; N a58 ; B 35 -14 791 705 ;
C 96 ; WX 815 ; N a59 ; B 35 -14 780 705 ;
C 97 ; WX 789 ; N a60 ; B 35 -14 754 705 ;
C 98 ; WX 789 ; N a61 ; B 35 -14 754 705 ;
C 99 ; WX 707 ; N a62 ; B 34 -14 673 705 ;
C 100 ; WX 687 ; N a63 ; B 36 0 651 692 ;
C 101 ; WX 696 ; N a64 ; B 35 0 661 691 ;
C 102 ; WX 689 ; N a65 ; B 35 0 655 692 ;
C 103 ; WX 786 ; N a66 ; B 34 -14 751 705 ;
C 104 ; WX 787 ; N a67 ; B 35 -14 752 705 ;
C 105 ; WX 713 ; N a68 ; B 35 -14 678 705 ;
C 106 ; WX 791 ; N a69 ; B 35 -14 756 705 ;
C 107 ; WX 785 ; N a70 ; B 36 -14 751 705 ;
C 108 ; WX 791 ; N a71 ; B 35 -14 757 705 ;
C 109 ; WX 873 ; N a72 ; B 35 -14 838 705 ;
C 110 ; WX 761 ; N a73 ; B 35 0 726 692 ;
C 111 ; WX 762 ; N a74 ; B 35 0 727 692 ;
C 112 ; WX 762 ; N a203 ; B 35 0 727 692 ;
C 113 ; WX 759 ; N a75 ; B 35 0 725 692 ;
C 114 ; WX 759 ; N a204 ; B 35 0 725 692 ;
C 115 ; WX 892 ; N a76 ; B 35 0 858 705 ;
C 116 ; WX 892 ; N a77 ; B 35 -14 858 692 ;
C 117 ; WX 788 ; N a78 ; B 35 -14 754 705 ;
C 118 ; WX 784 ; N a79 ; B 35 -14 749 705 ;
C 119 ; WX 438 ; N a81 ; B 35 -14 403 705 ;
C 120 ; WX 138 ; N a82 ; B 35 0 104 692 ;
C 121 ; WX 277 ; N a83 ; B 35 0 242 692 ;
C 122 ; WX 415 ; N a84 ; B 35 0 380 692 ;
C 123 ; WX 392 ; N a97 ; B 35 263 357 705 ;
C 124 ; WX 392 ; N a98 ; B 34 263 357 705 ;
C 125 ; WX 668 ; N a99 ; B 35 263 633 705 ;
C 126 ; WX 668 ; N a100 ; B 36 263 634 705 ;
C 128 ; WX 390 ; N a89 ; B 35 -14 356 705 ;
C 129 ; WX 390 ; N a90 ; B 35 -14 355 705 ;
C 130 ; WX 317 ; N a93 ; B 35 0 283 692 ;
C 131 ; WX 317 ; N a94 ; B 35 0 283 692 ;
C 132 ; WX 276 ; N a91 ; B 35 0 242 692 ;
C 133 ; WX 276 ; N a92 ; B 35 0 242 692 ;
C 134 ; WX 509 ; N a205 ; B 35 0 475 692 ;
C 135 ; WX 509 ; N a85 ; B 35 0 475 692 ;
C 136 ; WX 410 ; N a206 ; B 35 0 375 692 ;
C 137 ; WX 410 ; N a86 ; B 35 0 375 692 ;
C 138 ; WX 234 ; N a87 ; B 35 -14 199 705 ;
C 139 ; WX 234 ; N a88 ; B 35 -14 199 705 ;
C 140 ; WX 334 ; N a95 ; B 35 0 299 692 ;
C 141 ; WX 334 ; N a96 ; B 35 0 299 692 ;
C 161 ; WX 732 ; N a101 ; B 35 -143 697 806 ;
C 162 ; WX 544 ; N a102 ; B 56 -14 488 706 ;
C 163 ; WX 544 ; N a103 ; B 34 -14 508 705 ;
C 164 ; WX 910 ; N a104 ; B 35 40 875 651 ;
C 165 ; WX 667 ; N a106 ; B 35 -14 633 705 ;
C 166 ; WX 760 ; N a107 ; B 35 -14 726 705 ;
C 167 ; WX 760 ; N a108 ; B 0 121 758 569 ;
C 168 ; WX 776 ; N a112 ; B 35 0 741 705 ;
C 169 ; WX 595 ; N a111 ; B 34 -14 560 705 ;
C 170 ; WX 694 ; N a110 ; B 35 -14 659 705 ;
C 171 ; WX 626 ; N a109 ; B 34 0 591 705 ;
C 172 ; WX 788 ; N a120 ; B 35 -14 754 705 ;
C 173 ; WX 788 ; N a121 ; B 35 -14 754 705 ;
C 174 ; WX 788 ; N a122 ; B 35 -14 754 705 ;
C 175 ; WX 788 ; N a123 ; B 35 -14 754 705 ;
C 176 ; WX 788 ; N a124 ; B 35 -14 754 705 ;
C 177 ; WX 788 ; N a125 ; B 35 -14 754 705 ;
C 178 ; WX 788 ; N a126 ; B 35 -14 754 705 ;
C 179 ; WX 788 ; N a127 ; B 35 -14 754 705 ;
C 180 ; WX 788 ; N a128 ; B 35 -14 754 705 ;
C 181 ; WX 788 ; N a129 ; B 35 -14 754 705 ;
C 182 ; WX 788 ; N a130 ; B 35 -14 754 705 ;
C 183 ; WX 788 ; N a131 ; B 35 -14 754 705 ;
C 184 ; WX 788 ; N a132 ; B 35 -14 754 705 ;
C 185 ; WX 788 ; N a133 ; B 35 -14 754 705 ;
C 186 ; WX 788 ; N a134 ; B 35 -14 754 705 ;
C 187 ; WX 788 ; N a135 ; B 35 -14 754 705 ;
C 188 ; WX 788 ; N a136 ; B 35 -14 754 705 ;
C 189 ; WX 788 ; N a137 ; B 35 -14 754 705 ;
C 190 ; WX 788 ; N a138 ; B 35 -14 754 705 ;
C 191 ; WX 788 ; N a139 ; B 35 -14 754 705 ;
C 192 ; WX 788 ; N a140 ; B 35 -14 754 705 ;
C 193 ; WX 788 ; N a141 ; B 35 -14 754 705 ;
C 194 ; WX 788 ; N a142 ; B 35 -14 754 705 ;
C 195 ; WX 788 ; N a143 ; B 35 -14 754 705 ;
C 196 ; WX 788 ; N a144 ; B 35 -14 754 705 ;
C 197 ; WX 788 ; N a145 ; B 35 -14 754 705 ;
C 198 ; WX 788 ; N a146 ; B 35 -14 754 705 ;
C 199 ; WX 788 ; N a147 ; B 35 -14 754 705 ;
C 200 ; WX 788 ; N a148 ; B 35 -14 754 705 ;
C 201 ; WX 788 ; N a149 ; B 35 -14 754 705 ;
C 202 ; WX 788 ; N a150 ; B 35 -14 754 705 ;
C 203 ; WX 788 ; N a151 ; B 35 -14 754 705 ;
C 204 ; WX 788 ; N a152 ; B 35 -14 754 705 ;
C 205 ; WX 788 ; N a153 ; B 35 -14 754 705 ;
C 206 ; WX 788 ; N a154 ; B 35 -14 754 705 ;
C 207 ; WX 788 ; N a155 ; B 35 -14 754 705 ;
C 208 ; WX 788 ; N a156 ; B 35 -14 754 705 ;
C 209 ; WX 788 ; N a157 ; B 35 -14 754 705 ;
C 210 ; WX 788 ; N a158 ; B 35 -14 754 705 ;
C 211 ; WX 788 ; N a159 ; B 35 -14 754 705 ;
C 212 ; WX 894 ; N a160 ; B 35 58 860 634 ;
C 213 ; WX 838 ; N a161 ; B 35 152 803 540 ;
C 214 ; WX 1016 ; N a163 ; B 34 152 981 540 ;
C 215 ; WX 458 ; N a164 ; B 35 -127 422 820 ;
C 216 ; WX 748 ; N a196 ; B 35 94 698 597 ;
C 217 ; WX 924 ; N a165 ; B 35 140 890 552 ;
C 218 ; WX 748 ; N a192 ; B 35 94 698 597 ;
C 219 ; WX 918 ; N a166 ; B 35 166 884 526 ;
C 220 ; WX 927 ; N a167 ; B 35 32 892 660 ;
C 221 ; WX 928 ; N a168 ; B 35 129 891 562 ;
C 222 ; WX 928 ; N a169 ; B 35 128 893 563 ;
C 223 ; WX 834 ; N a170 ; B 35 155 799 537 ;
C 224 ; WX 873 ; N a171 ; B 35 93 838 599 ;
C 225 ; WX 828 ; N a172 ; B 35 104 791 588 ;
C 226 ; WX 924 ; N a173 ; B 35 98 889 594 ;
C 227 ; WX 924 ; N a162 ; B 35 98 889 594 ;
C 228 ; WX 917 ; N a174 ; B 35 0 882 692 ;
C 229 ; WX 930 ; N a175 ; B 35 84 896 608 ;
C 230 ; WX 931 ; N a176 ; B 35 84 896 608 ;
C 231 ; WX 463 ; N a177 ; B 35 -99 429 791 ;
C 232 ; WX 883 ; N a178 ; B 35 71 848 623 ;
C 233 ; WX 836 ; N a179 ; B 35 44 802 648 ;
C 234 ; WX 836 ; N a193 ; B 35 44 802 648 ;
C 235 ; WX 867 ; N a180 ; B 35 101 832 591 ;
C 236 ; WX 867 ; N a199 ; B 35 101 832 591 ;
C 237 ; WX 696 ; N a181 ; B 35 44 661 648 ;
C 238 ; WX 696 ; N a200 ; B 35 44 661 648 ;
C 239 ; WX 874 ; N a182 ; B 35 77 840 619 ;
C 241 ; WX 874 ; N a201 ; B 35 73 840 615 ;
C 242 ; WX 760 ; N a183 ; B 35 0 725 692 ;
C 243 ; WX 946 ; N a184 ; B 35 160 911 533 ;
C 244 ; WX 771 ; N a197 ; B 34 37 736 655 ;
C 245 ; WX 865 ; N a185 ; B 35 207 830 481 ;
C 246 ; WX 771 ; N a194 ; B 34 37 736 655 ;
C 247 ; WX 888 ; N a198 ; B 34 -19 853 712 ;
C 248 ; WX 967 ; N a186 ; B 35 124 932 568 ;
C 249 ; WX 888 ; N a195 ; B 34 -19 853 712 ;
C 250 ; WX 831 ; N a187 ; B 35 113 796 579 ;
C 251 ; WX 873 ; N a188 ; B 36 118 838 578 ;
C 252 ; WX 927 ; N a189 ; B 35 150 891 542 ;
C 253 ; WX 970 ; N a190 ; B 35 76 931 616 ;
C 254 ; WX 918 ; N a191 ; B 34 99 884 593 ;
EndCharMetrics
EndFontMetrics

View File

@ -0,0 +1,141 @@
// Parse character metrics from an AFM file to convert into a static go code declaration.
package main
import (
"bufio"
"errors"
"fmt"
"os"
"sort"
"strconv"
"strings"
pdfcommon "github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/model/fonts"
)
func main() {
if len(os.Args) < 2 {
fmt.Printf("Syntax: %s <file.afm>\n", os.Args[0])
return
}
metrics, err := GetCharmetricsFromAfmFile(os.Args[1])
if err != nil {
fmt.Printf("Error: %v\n", err)
os.Exit(1)
}
keys := []string{}
for key, _ := range metrics {
keys = append(keys, key)
}
sort.Strings(keys)
fmt.Printf("var xxfontCharMetrics map[string]CharMetrics = map[string]CharMetrics{\n")
for _, key := range keys {
metric := metrics[key]
fmt.Printf("\t\"%s\":\t{GlyphName:\"%s\", Wx:%f, Wy:%f},\n", key, metric.GlyphName, metric.Wx, metric.Wy)
}
fmt.Printf("}\n")
}
func GetCharmetricsFromAfmFile(filename string) (map[string]fonts.CharMetrics, error) {
glyphMetricsMap := map[string]fonts.CharMetrics{}
f, err := os.Open(filename)
if err != nil {
return nil, err
}
defer f.Close()
readingCharMetrics := false
scanner := bufio.NewScanner(f)
for scanner.Scan() {
line := scanner.Text()
parts := strings.Split(line, " ")
if len(parts) < 1 {
continue
}
if !readingCharMetrics && parts[0] == "StartCharMetrics" {
readingCharMetrics = true
continue
}
if readingCharMetrics && parts[0] == "EndCharMetrics" {
break
}
if !readingCharMetrics {
continue
}
if parts[0] != "C" {
continue
}
parts = strings.Split(line, ";")
metrics := fonts.CharMetrics{}
metrics.GlyphName = ""
for _, part := range parts {
cmd := strings.TrimSpace(part)
if len(cmd) == 0 {
continue
}
args := strings.Split(cmd, " ")
if len(args) < 1 {
continue
}
switch args[0] {
case "N":
if len(args) != 2 {
pdfcommon.Log.Debug("Failed C line: ", line)
return nil, errors.New("Invalid C line")
}
metrics.GlyphName = strings.TrimSpace(args[1])
case "WX":
if len(args) != 2 {
pdfcommon.Log.Debug("WX: Invalid number of args != 1 (%s)\n", line)
return nil, errors.New("Invalid range")
}
wx, err := strconv.ParseFloat(args[1], 64)
if err != nil {
return nil, err
}
metrics.Wx = wx
case "WY":
if len(args) != 2 {
pdfcommon.Log.Debug("WY: Invalid number of args != 1 (%s)\n", line)
return nil, errors.New("Invalid range")
}
wy, err := strconv.ParseFloat(args[1], 64)
if err != nil {
return nil, err
}
metrics.Wy = wy
case "W":
if len(args) != 2 {
pdfcommon.Log.Debug("W: Invalid number of args != 1 (%s)\n", line)
return nil, errors.New("Invalid range")
}
w, err := strconv.ParseFloat(args[1], 64)
if err != nil {
return nil, err
}
metrics.Wy = w
metrics.Wx = w
}
}
if len(metrics.GlyphName) > 0 {
glyphMetricsMap[metrics.GlyphName] = metrics
}
}
if err := scanner.Err(); err != nil {
return nil, err
}
return glyphMetricsMap, nil
}

23
pdf/model/fonts/font.go Normal file
View File

@ -0,0 +1,23 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package fonts
import (
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model/textencoding"
)
type Font interface {
SetEncoder(encoder textencoding.TextEncoder)
GetGlyphCharMetrics(glyph string) (CharMetrics, bool)
ToPdfObject() core.PdfObject
}
type CharMetrics struct {
GlyphName string
Wx float64
Wy float64
}

View File

@ -0,0 +1,373 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
/*
* The embedded character metrics specified in this file are distributed under the terms listed in
* ./afms/MustRead.html.
*/
package fonts
import (
"github.com/unidoc/unidoc/pdf/core"
"github.com/unidoc/unidoc/pdf/model/textencoding"
)
// Font Helvetica. Implements Font interface.
// This is a built-in font and it is assumed that every reader has access to it.
type fontHelvetica struct {
encoder textencoding.TextEncoder
}
func NewFontHelvetica() fontHelvetica {
font := fontHelvetica{}
font.encoder = textencoding.NewWinAnsiTextEncoder() // Default
return font
}
func (font fontHelvetica) SetEncoder(encoder textencoding.TextEncoder) {
font.encoder = encoder
}
func (font fontHelvetica) GetGlyphCharMetrics(glyph string) (CharMetrics, bool) {
metrics, has := helveticaCharMetrics[glyph]
if !has {
return metrics, false
}
return metrics, true
}
func (font fontHelvetica) ToPdfObject() core.PdfObject {
obj := &core.PdfIndirectObject{}
fontDict := &core.PdfObjectDictionary{
"Type": core.MakeName("Font"),
"Subtype": core.MakeName("Type1"),
"BaseFont": core.MakeName("Helvetica"),
"Encoding": font.encoder.ToPdfObject(),
}
obj.PdfObject = fontDict
return obj
}
// Helvetica font metics loaded from afms/Helvetica.afm. See afms/MustRead.html for license information.
var helveticaCharMetrics map[string]CharMetrics = map[string]CharMetrics{
"A": CharMetrics{GlyphName: "A", Wx: 667.000000, Wy: 0.000000},
"AE": CharMetrics{GlyphName: "AE", Wx: 1000.000000, Wy: 0.000000},
"Aacute": CharMetrics{GlyphName: "Aacute", Wx: 667.000000, Wy: 0.000000},
"Abreve": CharMetrics{GlyphName: "Abreve", Wx: 667.000000, Wy: 0.000000},
"Acircumflex": CharMetrics{GlyphName: "Acircumflex", Wx: 667.000000, Wy: 0.000000},
"Adieresis": CharMetrics{GlyphName: "Adieresis", Wx: 667.000000, Wy: 0.000000},
"Agrave": CharMetrics{GlyphName: "Agrave", Wx: 667.000000, Wy: 0.000000},
"Amacron": CharMetrics{GlyphName: "Amacron", Wx: 667.000000, Wy: 0.000000},
"Aogonek": CharMetrics{GlyphName: "Aogonek", Wx: 667.000000, Wy: 0.000000},
"Aring": CharMetrics{GlyphName: "Aring", Wx: 667.000000, Wy: 0.000000},
"Atilde": CharMetrics{GlyphName: "Atilde", Wx: 667.000000, Wy: 0.000000},
"B": CharMetrics{GlyphName: "B", Wx: 667.000000, Wy: 0.000000},
"C": CharMetrics{GlyphName: "C", Wx: 722.000000, Wy: 0.000000},
"Cacute": CharMetrics{GlyphName: "Cacute", Wx: 722.000000, Wy: 0.000000},
"Ccaron": CharMetrics{GlyphName: "Ccaron", Wx: 722.000000, Wy: 0.000000},
"Ccedilla": CharMetrics{GlyphName: "Ccedilla", Wx: 722.000000, Wy: 0.000000},
"D": CharMetrics{GlyphName: "D", Wx: 722.000000, Wy: 0.000000},
"Dcaron": CharMetrics{GlyphName: "Dcaron", Wx: 722.000000, Wy: 0.000000},
"Dcroat": CharMetrics{GlyphName: "Dcroat", Wx: 722.000000, Wy: 0.000000},
"Delta": CharMetrics{GlyphName: "Delta", Wx: 612.000000, Wy: 0.000000},
"E": CharMetrics{GlyphName: "E", Wx: 667.000000, Wy: 0.000000},
"Eacute": CharMetrics{GlyphName: "Eacute", Wx: 667.000000, Wy: 0.000000},
"Ecaron": CharMetrics{GlyphName: "Ecaron", Wx: 667.000000, Wy: 0.000000},
"Ecircumflex": CharMetrics{GlyphName: "Ecircumflex", Wx: 667.000000, Wy: 0.000000},
"Edieresis": CharMetrics{GlyphName: "Edieresis", Wx: 667.000000, Wy: 0.000000},
"Edotaccent": CharMetrics{GlyphName: "Edotaccent", Wx: 667.000000, Wy: 0.000000},
"Egrave": CharMetrics{GlyphName: "Egrave", Wx: 667.000000, Wy: 0.000000},
"Emacron": CharMetrics{GlyphName: "Emacron", Wx: 667.000000, Wy: 0.000000},
"Eogonek": CharMetrics{GlyphName: "Eogonek", Wx: 667.000000, Wy: 0.000000},
"Eth": CharMetrics{GlyphName: "Eth", Wx: 722.000000, Wy: 0.000000},
"Euro": CharMetrics{GlyphName: "Euro", Wx: 556.000000, Wy: 0.000000},
"F": CharMetrics{GlyphName: "F", Wx: 611.000000, Wy: 0.000000},
"G": CharMetrics{GlyphName: "G", Wx: 778.000000, Wy: 0.000000},
"Gbreve": CharMetrics{GlyphName: "Gbreve", Wx: 778.000000, Wy: 0.000000},
"Gcommaaccent": CharMetrics{GlyphName: "Gcommaaccent", Wx: 778.000000, Wy: 0.000000},
"H": CharMetrics{GlyphName: "H", Wx: 722.000000, Wy: 0.000000},
"I": CharMetrics{GlyphName: "I", Wx: 278.000000, Wy: 0.000000},
"Iacute": CharMetrics{GlyphName: "Iacute", Wx: 278.000000, Wy: 0.000000},
"Icircumflex": CharMetrics{GlyphName: "Icircumflex", Wx: 278.000000, Wy: 0.000000},
"Idieresis": CharMetrics{GlyphName: "Idieresis", Wx: 278.000000, Wy: 0.000000},
"Idotaccent": CharMetrics{GlyphName: "Idotaccent", Wx: 278.000000, Wy: 0.000000},
"Igrave": CharMetrics{GlyphName: "Igrave", Wx: 278.000000, Wy: 0.000000},
"Imacron": CharMetrics{GlyphName: "Imacron", Wx: 278.000000, Wy: 0.000000},
"Iogonek": CharMetrics{GlyphName: "Iogonek", Wx: 278.000000, Wy: 0.000000},
"J": CharMetrics{GlyphName: "J", Wx: 500.000000, Wy: 0.000000},
"K": CharMetrics{GlyphName: "K", Wx: 667.000000, Wy: 0.000000},
"Kcommaaccent": CharMetrics{GlyphName: "Kcommaaccent", Wx: 667.000000, Wy: 0.000000},
"L": CharMetrics{GlyphName: "L", Wx: 556.000000, Wy: 0.000000},
"Lacute": CharMetrics{GlyphName: "Lacute", Wx: 556.000000, Wy: 0.000000},
"Lcaron": CharMetrics{GlyphName: "Lcaron", Wx: 556.000000, Wy: 0.000000},
"Lcommaaccent": CharMetrics{GlyphName: "Lcommaaccent", Wx: 556.000000, Wy: 0.000000},
"Lslash": CharMetrics{GlyphName: "Lslash", Wx: 556.000000, Wy: 0.000000},
"M": CharMetrics{GlyphName: "M", Wx: 833.000000, Wy: 0.000000},
"N": CharMetrics{GlyphName: "N", Wx: 722.000000, Wy: 0.000000},
"Nacute": CharMetrics{GlyphName: "Nacute", Wx: 722.000000, Wy: 0.000000},
"Ncaron": CharMetrics{GlyphName: "Ncaron", Wx: 722.000000, Wy: 0.000000},
"Ncommaaccent": CharMetrics{GlyphName: "Ncommaaccent", Wx: 722.000000, Wy: 0.000000},
"Ntilde": CharMetrics{GlyphName: "Ntilde", Wx: 722.000000, Wy: 0.000000},
"O": CharMetrics{GlyphName: "O", Wx: 778.000000, Wy: 0.000000},
"OE": CharMetrics{GlyphName: "OE", Wx: 1000.000000, Wy: 0.000000},
"Oacute": CharMetrics{GlyphName: "Oacute", Wx: 778.000000, Wy: 0.000000},
"Ocircumflex": CharMetrics{GlyphName: "Ocircumflex", Wx: 778.000000, Wy: 0.000000},
"Odieresis": CharMetrics{GlyphName: "Odieresis", Wx: 778.000000, Wy: 0.000000},
"Ograve": CharMetrics{GlyphName: "Ograve", Wx: 778.000000, Wy: 0.000000},
"Ohungarumlaut": CharMetrics{GlyphName: "Ohungarumlaut", Wx: 778.000000, Wy: 0.000000},
"Omacron": CharMetrics{GlyphName: "Omacron", Wx: 778.000000, Wy: 0.000000},
"Oslash": CharMetrics{GlyphName: "Oslash", Wx: 778.000000, Wy: 0.000000},
"Otilde": CharMetrics{GlyphName: "Otilde", Wx: 778.000000, Wy: 0.000000},
"P": CharMetrics{GlyphName: "P", Wx: 667.000000, Wy: 0.000000},
"Q": CharMetrics{GlyphName: "Q", Wx: 778.000000, Wy: 0.000000},
"R": CharMetrics{GlyphName: "R", Wx: 722.000000, Wy: 0.000000},
"Racute": CharMetrics{GlyphName: "Racute", Wx: 722.000000, Wy: 0.000000},
"Rcaron": CharMetrics{GlyphName: "Rcaron", Wx: 722.000000, Wy: 0.000000},
"Rcommaaccent": CharMetrics{GlyphName: "Rcommaaccent", Wx: 722.000000, Wy: 0.000000},
"S": CharMetrics{GlyphName: "S", Wx: 667.000000, Wy: 0.000000},
"Sacute": CharMetrics{GlyphName: "Sacute", Wx: 667.000000, Wy: 0.000000},
"Scaron": CharMetrics{GlyphName: "Scaron", Wx: 667.000000, Wy: 0.000000},
"Scedilla": CharMetrics{GlyphName: "Scedilla", Wx: 667.000000, Wy: 0.000000},
"Scommaaccent": CharMetrics{GlyphName: "Scommaaccent", Wx: 667.000000, Wy: 0.000000},
"T": CharMetrics{GlyphName: "T", Wx: 611.000000, Wy: 0.000000},
"Tcaron": CharMetrics{GlyphName: "Tcaron", Wx: 611.000000, Wy: 0.000000},
"Tcommaaccent": CharMetrics{GlyphName: "Tcommaaccent", Wx: 611.000000, Wy: 0.000000},
"Thorn": CharMetrics{GlyphName: "Thorn", Wx: 667.000000, Wy: 0.000000},
"U": CharMetrics{GlyphName: "U", Wx: 722.000000, Wy: 0.000000},
"Uacute": CharMetrics{GlyphName: "Uacute", Wx: 722.000000, Wy: 0.000000},
"Ucircumflex": CharMetrics{GlyphName: "Ucircumflex", Wx: 722.000000, Wy: 0.000000},
"Udieresis": CharMetrics{GlyphName: "Udieresis", Wx: 722.000000, Wy: 0.000000},
"Ugrave": CharMetrics{GlyphName: "Ugrave", Wx: 722.000000, Wy: 0.000000},
"Uhungarumlaut": CharMetrics{GlyphName: "Uhungarumlaut", Wx: 722.000000, Wy: 0.000000},
"Umacron": CharMetrics{GlyphName: "Umacron", Wx: 722.000000, Wy: 0.000000},
"Uogonek": CharMetrics{GlyphName: "Uogonek", Wx: 722.000000, Wy: 0.000000},
"Uring": CharMetrics{GlyphName: "Uring", Wx: 722.000000, Wy: 0.000000},
"V": CharMetrics{GlyphName: "V", Wx: 667.000000, Wy: 0.000000},
"W": CharMetrics{GlyphName: "W", Wx: 944.000000, Wy: 0.000000},
"X": CharMetrics{GlyphName: "X", Wx: 667.000000, Wy: 0.000000},
"Y": CharMetrics{GlyphName: "Y", Wx: 667.000000, Wy: 0.000000},
"Yacute": CharMetrics{GlyphName: "Yacute", Wx: 667.000000, Wy: 0.000000},
"Ydieresis": CharMetrics{GlyphName: "Ydieresis", Wx: 667.000000, Wy: 0.000000},
"Z": CharMetrics{GlyphName: "Z", Wx: 611.000000, Wy: 0.000000},
"Zacute": CharMetrics{GlyphName: "Zacute", Wx: 611.000000, Wy: 0.000000},
"Zcaron": CharMetrics{GlyphName: "Zcaron", Wx: 611.000000, Wy: 0.000000},
"Zdotaccent": CharMetrics{GlyphName: "Zdotaccent", Wx: 611.000000, Wy: 0.000000},
"a": CharMetrics{GlyphName: "a", Wx: 556.000000, Wy: 0.000000},
"aacute": CharMetrics{GlyphName: "aacute", Wx: 556.000000, Wy: 0.000000},
"abreve": CharMetrics{GlyphName: "abreve", Wx: 556.000000, Wy: 0.000000},
"acircumflex": CharMetrics{GlyphName: "acircumflex", Wx: 556.000000, Wy: 0.000000},
"acute": CharMetrics{GlyphName: "acute", Wx: 333.000000, Wy: 0.000000},
"adieresis": CharMetrics{GlyphName: "adieresis", Wx: 556.000000, Wy: 0.000000},
"ae": CharMetrics{GlyphName: "ae", Wx: 889.000000, Wy: 0.000000},
"agrave": CharMetrics{GlyphName: "agrave", Wx: 556.000000, Wy: 0.000000},
"amacron": CharMetrics{GlyphName: "amacron", Wx: 556.000000, Wy: 0.000000},
"ampersand": CharMetrics{GlyphName: "ampersand", Wx: 667.000000, Wy: 0.000000},
"aogonek": CharMetrics{GlyphName: "aogonek", Wx: 556.000000, Wy: 0.000000},
"aring": CharMetrics{GlyphName: "aring", Wx: 556.000000, Wy: 0.000000},
"asciicircum": CharMetrics{GlyphName: "asciicircum", Wx: 469.000000, Wy: 0.000000},
"asciitilde": CharMetrics{GlyphName: "asciitilde", Wx: 584.000000, Wy: 0.000000},
"asterisk": CharMetrics{GlyphName: "asterisk", Wx: 389.000000, Wy: 0.000000},
"at": CharMetrics{GlyphName: "at", Wx: 1015.000000, Wy: 0.000000},
"atilde": CharMetrics{GlyphName: "atilde", Wx: 556.000000, Wy: 0.000000},
"b": CharMetrics{GlyphName: "b", Wx: 556.000000, Wy: 0.000000},
"backslash": CharMetrics{GlyphName: "backslash", Wx: 278.000000, Wy: 0.000000},
"bar": CharMetrics{GlyphName: "bar", Wx: 260.000000, Wy: 0.000000},
"braceleft": CharMetrics{GlyphName: "braceleft", Wx: 334.000000, Wy: 0.000000},
"braceright": CharMetrics{GlyphName: "braceright", Wx: 334.000000, Wy: 0.000000},
"bracketleft": CharMetrics{GlyphName: "bracketleft", Wx: 278.000000, Wy: 0.000000},
"bracketright": CharMetrics{GlyphName: "bracketright", Wx: 278.000000, Wy: 0.000000},
"breve": CharMetrics{GlyphName: "breve", Wx: 333.000000, Wy: 0.000000},
"brokenbar": CharMetrics{GlyphName: "brokenbar", Wx: 260.000000, Wy: 0.000000},
"bullet": CharMetrics{GlyphName: "bullet", Wx: 350.000000, Wy: 0.000000},
"c": CharMetrics{GlyphName: "c", Wx: 500.000000, Wy: 0.000000},
"cacute": CharMetrics{GlyphName: "cacute", Wx: 500.000000, Wy: 0.000000},
"caron": CharMetrics{GlyphName: "caron", Wx: 333.000000, Wy: 0.000000},
"ccaron": CharMetrics{GlyphName: "ccaron", Wx: 500.000000, Wy: 0.000000},
"ccedilla": CharMetrics{GlyphName: "ccedilla", Wx: 500.000000, Wy: 0.000000},
"cedilla": CharMetrics{GlyphName: "cedilla", Wx: 333.000000, Wy: 0.000000},
"cent": CharMetrics{GlyphName: "cent", Wx: 556.000000, Wy: 0.000000},
"circumflex": CharMetrics{GlyphName: "circumflex", Wx: 333.000000, Wy: 0.000000},
"colon": CharMetrics{GlyphName: "colon", Wx: 278.000000, Wy: 0.000000},
"comma": CharMetrics{GlyphName: "comma", Wx: 278.000000, Wy: 0.000000},
"commaaccent": CharMetrics{GlyphName: "commaaccent", Wx: 250.000000, Wy: 0.000000},
"copyright": CharMetrics{GlyphName: "copyright", Wx: 737.000000, Wy: 0.000000},
"currency": CharMetrics{GlyphName: "currency", Wx: 556.000000, Wy: 0.000000},
"d": CharMetrics{GlyphName: "d", Wx: 556.000000, Wy: 0.000000},
"dagger": CharMetrics{GlyphName: "dagger", Wx: 556.000000, Wy: 0.000000},
"daggerdbl": CharMetrics{GlyphName: "daggerdbl", Wx: 556.000000, Wy: 0.000000},
"dcaron": CharMetrics{GlyphName: "dcaron", Wx: 643.000000, Wy: 0.000000},
"dcroat": CharMetrics{GlyphName: "dcroat", Wx: 556.000000, Wy: 0.000000},
"degree": CharMetrics{GlyphName: "degree", Wx: 400.000000, Wy: 0.000000},
"dieresis": CharMetrics{GlyphName: "dieresis", Wx: 333.000000, Wy: 0.000000},
"divide": CharMetrics{GlyphName: "divide", Wx: 584.000000, Wy: 0.000000},
"dollar": CharMetrics{GlyphName: "dollar", Wx: 556.000000, Wy: 0.000000},
"dotaccent": CharMetrics{GlyphName: "dotaccent", Wx: 333.000000, Wy: 0.000000},
"dotlessi": CharMetrics{GlyphName: "dotlessi", Wx: 278.000000, Wy: 0.000000},
"e": CharMetrics{GlyphName: "e", Wx: 556.000000, Wy: 0.000000},
"eacute": CharMetrics{GlyphName: "eacute", Wx: 556.000000, Wy: 0.000000},
"ecaron": CharMetrics{GlyphName: "ecaron", Wx: 556.000000, Wy: 0.000000},
"ecircumflex": CharMetrics{GlyphName: "ecircumflex", Wx: 556.000000, Wy: 0.000000},
"edieresis": CharMetrics{GlyphName: "edieresis", Wx: 556.000000, Wy: 0.000000},
"edotaccent": CharMetrics{GlyphName: "edotaccent", Wx: 556.000000, Wy: 0.000000},
"egrave": CharMetrics{GlyphName: "egrave", Wx: 556.000000, Wy: 0.000000},
"eight": CharMetrics{GlyphName: "eight", Wx: 556.000000, Wy: 0.000000},
"ellipsis": CharMetrics{GlyphName: "ellipsis", Wx: 1000.000000, Wy: 0.000000},
"emacron": CharMetrics{GlyphName: "emacron", Wx: 556.000000, Wy: 0.000000},
"emdash": CharMetrics{GlyphName: "emdash", Wx: 1000.000000, Wy: 0.000000},
"endash": CharMetrics{GlyphName: "endash", Wx: 556.000000, Wy: 0.000000},
"eogonek": CharMetrics{GlyphName: "eogonek", Wx: 556.000000, Wy: 0.000000},
"equal": CharMetrics{GlyphName: "equal", Wx: 584.000000, Wy: 0.000000},
"eth": CharMetrics{GlyphName: "eth", Wx: 556.000000, Wy: 0.000000},
"exclam": CharMetrics{GlyphName: "exclam", Wx: 278.000000, Wy: 0.000000},
"exclamdown": CharMetrics{GlyphName: "exclamdown", Wx: 333.000000, Wy: 0.000000},
"f": CharMetrics{GlyphName: "f", Wx: 278.000000, Wy: 0.000000},
"fi": CharMetrics{GlyphName: "fi", Wx: 500.000000, Wy: 0.000000},
"five": CharMetrics{GlyphName: "five", Wx: 556.000000, Wy: 0.000000},
"fl": CharMetrics{GlyphName: "fl", Wx: 500.000000, Wy: 0.000000},
"florin": CharMetrics{GlyphName: "florin", Wx: 556.000000, Wy: 0.000000},
"four": CharMetrics{GlyphName: "four", Wx: 556.000000, Wy: 0.000000},
"fraction": CharMetrics{GlyphName: "fraction", Wx: 167.000000, Wy: 0.000000},
"g": CharMetrics{GlyphName: "g", Wx: 556.000000, Wy: 0.000000},
"gbreve": CharMetrics{GlyphName: "gbreve", Wx: 556.000000, Wy: 0.000000},
"gcommaaccent": CharMetrics{GlyphName: "gcommaaccent", Wx: 556.000000, Wy: 0.000000},
"germandbls": CharMetrics{GlyphName: "germandbls", Wx: 611.000000, Wy: 0.000000},
"grave": CharMetrics{GlyphName: "grave", Wx: 333.000000, Wy: 0.000000},
"greater": CharMetrics{GlyphName: "greater", Wx: 584.000000, Wy: 0.000000},
"greaterequal": CharMetrics{GlyphName: "greaterequal", Wx: 549.000000, Wy: 0.000000},
"guillemotleft": CharMetrics{GlyphName: "guillemotleft", Wx: 556.000000, Wy: 0.000000},
"guillemotright": CharMetrics{GlyphName: "guillemotright", Wx: 556.000000, Wy: 0.000000},
"guilsinglleft": CharMetrics{GlyphName: "guilsinglleft", Wx: 333.000000, Wy: 0.000000},
"guilsinglright": CharMetrics{GlyphName: "guilsinglright", Wx: 333.000000, Wy: 0.000000},
"h": CharMetrics{GlyphName: "h", Wx: 556.000000, Wy: 0.000000},
"hungarumlaut": CharMetrics{GlyphName: "hungarumlaut", Wx: 333.000000, Wy: 0.000000},
"hyphen": CharMetrics{GlyphName: "hyphen", Wx: 333.000000, Wy: 0.000000},
"i": CharMetrics{GlyphName: "i", Wx: 222.000000, Wy: 0.000000},
"iacute": CharMetrics{GlyphName: "iacute", Wx: 278.000000, Wy: 0.000000},
"icircumflex": CharMetrics{GlyphName: "icircumflex", Wx: 278.000000, Wy: 0.000000},
"idieresis": CharMetrics{GlyphName: "idieresis", Wx: 278.000000, Wy: 0.000000},
"igrave": CharMetrics{GlyphName: "igrave", Wx: 278.000000, Wy: 0.000000},
"imacron": CharMetrics{GlyphName: "imacron", Wx: 278.000000, Wy: 0.000000},
"iogonek": CharMetrics{GlyphName: "iogonek", Wx: 222.000000, Wy: 0.000000},
"j": CharMetrics{GlyphName: "j", Wx: 222.000000, Wy: 0.000000},
"k": CharMetrics{GlyphName: "k", Wx: 500.000000, Wy: 0.000000},
"kcommaaccent": CharMetrics{GlyphName: "kcommaaccent", Wx: 500.000000, Wy: 0.000000},
"l": CharMetrics{GlyphName: "l", Wx: 222.000000, Wy: 0.000000},
"lacute": CharMetrics{GlyphName: "lacute", Wx: 222.000000, Wy: 0.000000},
"lcaron": CharMetrics{GlyphName: "lcaron", Wx: 299.000000, Wy: 0.000000},
"lcommaaccent": CharMetrics{GlyphName: "lcommaaccent", Wx: 222.000000, Wy: 0.000000},
"less": CharMetrics{GlyphName: "less", Wx: 584.000000, Wy: 0.000000},
"lessequal": CharMetrics{GlyphName: "lessequal", Wx: 549.000000, Wy: 0.000000},
"logicalnot": CharMetrics{GlyphName: "logicalnot", Wx: 584.000000, Wy: 0.000000},
"lozenge": CharMetrics{GlyphName: "lozenge", Wx: 471.000000, Wy: 0.000000},
"lslash": CharMetrics{GlyphName: "lslash", Wx: 222.000000, Wy: 0.000000},
"m": CharMetrics{GlyphName: "m", Wx: 833.000000, Wy: 0.000000},
"macron": CharMetrics{GlyphName: "macron", Wx: 333.000000, Wy: 0.000000},
"minus": CharMetrics{GlyphName: "minus", Wx: 584.000000, Wy: 0.000000},
"mu": CharMetrics{GlyphName: "mu", Wx: 556.000000, Wy: 0.000000},
"multiply": CharMetrics{GlyphName: "multiply", Wx: 584.000000, Wy: 0.000000},
"n": CharMetrics{GlyphName: "n", Wx: 556.000000, Wy: 0.000000},
"nacute": CharMetrics{GlyphName: "nacute", Wx: 556.000000, Wy: 0.000000},
"ncaron": CharMetrics{GlyphName: "ncaron", Wx: 556.000000, Wy: 0.000000},
"ncommaaccent": CharMetrics{GlyphName: "ncommaaccent", Wx: 556.000000, Wy: 0.000000},
"nine": CharMetrics{GlyphName: "nine", Wx: 556.000000, Wy: 0.000000},
"notequal": CharMetrics{GlyphName: "notequal", Wx: 549.000000, Wy: 0.000000},
"ntilde": CharMetrics{GlyphName: "ntilde", Wx: 556.000000, Wy: 0.000000},
"numbersign": CharMetrics{GlyphName: "numbersign", Wx: 556.000000, Wy: 0.000000},
"o": CharMetrics{GlyphName: "o", Wx: 556.000000, Wy: 0.000000},
"oacute": CharMetrics{GlyphName: "oacute", Wx: 556.000000, Wy: 0.000000},
"ocircumflex": CharMetrics{GlyphName: "ocircumflex", Wx: 556.000000, Wy: 0.000000},
"odieresis": CharMetrics{GlyphName: "odieresis", Wx: 556.000000, Wy: 0.000000},
"oe": CharMetrics{GlyphName: "oe", Wx: 944.000000, Wy: 0.000000},
"ogonek": CharMetrics{GlyphName: "ogonek", Wx: 333.000000, Wy: 0.000000},
"ograve": CharMetrics{GlyphName: "ograve", Wx: 556.000000, Wy: 0.000000},
"ohungarumlaut": CharMetrics{GlyphName: "ohungarumlaut", Wx: 556.000000, Wy: 0.000000},
"omacron": CharMetrics{GlyphName: "omacron", Wx: 556.000000, Wy: 0.000000},
"one": CharMetrics{GlyphName: "one", Wx: 556.000000, Wy: 0.000000},
"onehalf": CharMetrics{GlyphName: "onehalf", Wx: 834.000000, Wy: 0.000000},
"onequarter": CharMetrics{GlyphName: "onequarter", Wx: 834.000000, Wy: 0.000000},
"onesuperior": CharMetrics{GlyphName: "onesuperior", Wx: 333.000000, Wy: 0.000000},
"ordfeminine": CharMetrics{GlyphName: "ordfeminine", Wx: 370.000000, Wy: 0.000000},
"ordmasculine": CharMetrics{GlyphName: "ordmasculine", Wx: 365.000000, Wy: 0.000000},
"oslash": CharMetrics{GlyphName: "oslash", Wx: 611.000000, Wy: 0.000000},
"otilde": CharMetrics{GlyphName: "otilde", Wx: 556.000000, Wy: 0.000000},
"p": CharMetrics{GlyphName: "p", Wx: 556.000000, Wy: 0.000000},
"paragraph": CharMetrics{GlyphName: "paragraph", Wx: 537.000000, Wy: 0.000000},
"parenleft": CharMetrics{GlyphName: "parenleft", Wx: 333.000000, Wy: 0.000000},
"parenright": CharMetrics{GlyphName: "parenright", Wx: 333.000000, Wy: 0.000000},
"partialdiff": CharMetrics{GlyphName: "partialdiff", Wx: 476.000000, Wy: 0.000000},
"percent": CharMetrics{GlyphName: "percent", Wx: 889.000000, Wy: 0.000000},
"period": CharMetrics{GlyphName: "period", Wx: 278.000000, Wy: 0.000000},
"periodcentered": CharMetrics{GlyphName: "periodcentered", Wx: 278.000000, Wy: 0.000000},
"perthousand": CharMetrics{GlyphName: "perthousand", Wx: 1000.000000, Wy: 0.000000},
"plus": CharMetrics{GlyphName: "plus", Wx: 584.000000, Wy: 0.000000},
"plusminus": CharMetrics{GlyphName: "plusminus", Wx: 584.000000, Wy: 0.000000},
"q": CharMetrics{GlyphName: "q", Wx: 556.000000, Wy: 0.000000},
"question": CharMetrics{GlyphName: "question", Wx: 556.000000, Wy: 0.000000},
"questiondown": CharMetrics{GlyphName: "questiondown", Wx: 611.000000, Wy: 0.000000},
"quotedbl": CharMetrics{GlyphName: "quotedbl", Wx: 355.000000, Wy: 0.000000},
"quotedblbase": CharMetrics{GlyphName: "quotedblbase", Wx: 333.000000, Wy: 0.000000},
"quotedblleft": CharMetrics{GlyphName: "quotedblleft", Wx: 333.000000, Wy: 0.000000},
"quotedblright": CharMetrics{GlyphName: "quotedblright", Wx: 333.000000, Wy: 0.000000},
"quoteleft": CharMetrics{GlyphName: "quoteleft", Wx: 222.000000, Wy: 0.000000},
"quoteright": CharMetrics{GlyphName: "quoteright", Wx: 222.000000, Wy: 0.000000},
"quotesinglbase": CharMetrics{GlyphName: "quotesinglbase", Wx: 222.000000, Wy: 0.000000},
"quotesingle": CharMetrics{GlyphName: "quotesingle", Wx: 191.000000, Wy: 0.000000},
"r": CharMetrics{GlyphName: "r", Wx: 333.000000, Wy: 0.000000},
"racute": CharMetrics{GlyphName: "racute", Wx: 333.000000, Wy: 0.000000},
"radical": CharMetrics{GlyphName: "radical", Wx: 453.000000, Wy: 0.000000},
"rcaron": CharMetrics{GlyphName: "rcaron", Wx: 333.000000, Wy: 0.000000},
"rcommaaccent": CharMetrics{GlyphName: "rcommaaccent", Wx: 333.000000, Wy: 0.000000},
"registered": CharMetrics{GlyphName: "registered", Wx: 737.000000, Wy: 0.000000},
"ring": CharMetrics{GlyphName: "ring", Wx: 333.000000, Wy: 0.000000},
"s": CharMetrics{GlyphName: "s", Wx: 500.000000, Wy: 0.000000},
"sacute": CharMetrics{GlyphName: "sacute", Wx: 500.000000, Wy: 0.000000},
"scaron": CharMetrics{GlyphName: "scaron", Wx: 500.000000, Wy: 0.000000},
"scedilla": CharMetrics{GlyphName: "scedilla", Wx: 500.000000, Wy: 0.000000},
"scommaaccent": CharMetrics{GlyphName: "scommaaccent", Wx: 500.000000, Wy: 0.000000},
"section": CharMetrics{GlyphName: "section", Wx: 556.000000, Wy: 0.000000},
"semicolon": CharMetrics{GlyphName: "semicolon", Wx: 278.000000, Wy: 0.000000},
"seven": CharMetrics{GlyphName: "seven", Wx: 556.000000, Wy: 0.000000},
"six": CharMetrics{GlyphName: "six", Wx: 556.000000, Wy: 0.000000},
"slash": CharMetrics{GlyphName: "slash", Wx: 278.000000, Wy: 0.000000},
"space": CharMetrics{GlyphName: "space", Wx: 278.000000, Wy: 0.000000},
"sterling": CharMetrics{GlyphName: "sterling", Wx: 556.000000, Wy: 0.000000},
"summation": CharMetrics{GlyphName: "summation", Wx: 600.000000, Wy: 0.000000},
"t": CharMetrics{GlyphName: "t", Wx: 278.000000, Wy: 0.000000},
"tcaron": CharMetrics{GlyphName: "tcaron", Wx: 317.000000, Wy: 0.000000},
"tcommaaccent": CharMetrics{GlyphName: "tcommaaccent", Wx: 278.000000, Wy: 0.000000},
"thorn": CharMetrics{GlyphName: "thorn", Wx: 556.000000, Wy: 0.000000},
"three": CharMetrics{GlyphName: "three", Wx: 556.000000, Wy: 0.000000},
"threequarters": CharMetrics{GlyphName: "threequarters", Wx: 834.000000, Wy: 0.000000},
"threesuperior": CharMetrics{GlyphName: "threesuperior", Wx: 333.000000, Wy: 0.000000},
"tilde": CharMetrics{GlyphName: "tilde", Wx: 333.000000, Wy: 0.000000},
"trademark": CharMetrics{GlyphName: "trademark", Wx: 1000.000000, Wy: 0.000000},
"two": CharMetrics{GlyphName: "two", Wx: 556.000000, Wy: 0.000000},
"twosuperior": CharMetrics{GlyphName: "twosuperior", Wx: 333.000000, Wy: 0.000000},
"u": CharMetrics{GlyphName: "u", Wx: 556.000000, Wy: 0.000000},
"uacute": CharMetrics{GlyphName: "uacute", Wx: 556.000000, Wy: 0.000000},
"ucircumflex": CharMetrics{GlyphName: "ucircumflex", Wx: 556.000000, Wy: 0.000000},
"udieresis": CharMetrics{GlyphName: "udieresis", Wx: 556.000000, Wy: 0.000000},
"ugrave": CharMetrics{GlyphName: "ugrave", Wx: 556.000000, Wy: 0.000000},
"uhungarumlaut": CharMetrics{GlyphName: "uhungarumlaut", Wx: 556.000000, Wy: 0.000000},
"umacron": CharMetrics{GlyphName: "umacron", Wx: 556.000000, Wy: 0.000000},
"underscore": CharMetrics{GlyphName: "underscore", Wx: 556.000000, Wy: 0.000000},
"uogonek": CharMetrics{GlyphName: "uogonek", Wx: 556.000000, Wy: 0.000000},
"uring": CharMetrics{GlyphName: "uring", Wx: 556.000000, Wy: 0.000000},
"v": CharMetrics{GlyphName: "v", Wx: 500.000000, Wy: 0.000000},
"w": CharMetrics{GlyphName: "w", Wx: 722.000000, Wy: 0.000000},
"x": CharMetrics{GlyphName: "x", Wx: 500.000000, Wy: 0.000000},
"y": CharMetrics{GlyphName: "y", Wx: 500.000000, Wy: 0.000000},
"yacute": CharMetrics{GlyphName: "yacute", Wx: 500.000000, Wy: 0.000000},
"ydieresis": CharMetrics{GlyphName: "ydieresis", Wx: 500.000000, Wy: 0.000000},
"yen": CharMetrics{GlyphName: "yen", Wx: 556.000000, Wy: 0.000000},
"z": CharMetrics{GlyphName: "z", Wx: 500.000000, Wy: 0.000000},
"zacute": CharMetrics{GlyphName: "zacute", Wx: 500.000000, Wy: 0.000000},
"zcaron": CharMetrics{GlyphName: "zcaron", Wx: 500.000000, Wy: 0.000000},
"zdotaccent": CharMetrics{GlyphName: "zdotaccent", Wx: 500.000000, Wy: 0.000000},
"zero": CharMetrics{GlyphName: "zero", Wx: 556.000000, Wy: 0.000000},
}

View File

@ -0,0 +1,374 @@
/*
* Copyright (c) 2013 Kurt Jung (Gmail: kurt.w.jung)
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package fonts
// Utility to parse TTF font files
// Version: 1.0
// Date: 2011-06-18
// Author: Olivier PLATHEY
// Port to Go: Kurt Jung, 2013-07-15
import (
"encoding/binary"
"fmt"
"os"
"regexp"
"strings"
)
// TtfType contains metrics of a TrueType font.
type TtfType struct {
Embeddable bool
UnitsPerEm uint16
PostScriptName string
Bold bool
ItalicAngle int16
IsFixedPitch bool
TypoAscender int16
TypoDescender int16
UnderlinePosition int16
UnderlineThickness int16
Xmin, Ymin, Xmax, Ymax int16
CapHeight int16
Widths []uint16
Chars map[uint16]uint16
}
type ttfParser struct {
rec TtfType
f *os.File
tables map[string]uint32
numberOfHMetrics uint16
numGlyphs uint16
}
// TtfParse extracts various metrics from a TrueType font file.
func TtfParse(fileStr string) (TtfRec TtfType, err error) {
var t ttfParser
t.f, err = os.Open(fileStr)
if err != nil {
return
}
version, err := t.ReadStr(4)
if err != nil {
return
}
if version == "OTTO" {
err = fmt.Errorf("fonts based on PostScript outlines are not supported")
return
}
if version != "\x00\x01\x00\x00" {
err = fmt.Errorf("unrecognized file format")
return
}
numTables := int(t.ReadUShort())
t.Skip(3 * 2) // searchRange, entrySelector, rangeShift
t.tables = make(map[string]uint32)
var tag string
for j := 0; j < numTables; j++ {
tag, err = t.ReadStr(4)
if err != nil {
return
}
t.Skip(4) // checkSum
offset := t.ReadULong()
t.Skip(4) // length
t.tables[tag] = offset
}
err = t.ParseComponents()
if err != nil {
return
}
t.f.Close()
TtfRec = t.rec
return
}
func (t *ttfParser) ParseComponents() (err error) {
err = t.ParseHead()
if err == nil {
err = t.ParseHhea()
if err == nil {
err = t.ParseMaxp()
if err == nil {
err = t.ParseHmtx()
if err == nil {
err = t.ParseCmap()
if err == nil {
err = t.ParseName()
if err == nil {
err = t.ParseOS2()
if err == nil {
err = t.ParsePost()
}
}
}
}
}
}
}
return
}
func (t *ttfParser) ParseHead() (err error) {
err = t.Seek("head")
t.Skip(3 * 4) // version, fontRevision, checkSumAdjustment
magicNumber := t.ReadULong()
if magicNumber != 0x5F0F3CF5 {
err = fmt.Errorf("incorrect magic number")
return
}
t.Skip(2) // flags
t.rec.UnitsPerEm = t.ReadUShort()
t.Skip(2 * 8) // created, modified
t.rec.Xmin = t.ReadShort()
t.rec.Ymin = t.ReadShort()
t.rec.Xmax = t.ReadShort()
t.rec.Ymax = t.ReadShort()
return
}
func (t *ttfParser) ParseHhea() (err error) {
err = t.Seek("hhea")
if err == nil {
t.Skip(4 + 15*2)
t.numberOfHMetrics = t.ReadUShort()
}
return
}
func (t *ttfParser) ParseMaxp() (err error) {
err = t.Seek("maxp")
if err == nil {
t.Skip(4)
t.numGlyphs = t.ReadUShort()
}
return
}
func (t *ttfParser) ParseHmtx() (err error) {
err = t.Seek("hmtx")
if err == nil {
t.rec.Widths = make([]uint16, 0, 8)
for j := uint16(0); j < t.numberOfHMetrics; j++ {
t.rec.Widths = append(t.rec.Widths, t.ReadUShort())
t.Skip(2) // lsb
}
if t.numberOfHMetrics < t.numGlyphs {
lastWidth := t.rec.Widths[t.numberOfHMetrics-1]
for j := t.numberOfHMetrics; j < t.numGlyphs; j++ {
t.rec.Widths = append(t.rec.Widths, lastWidth)
}
}
}
return
}
func (t *ttfParser) ParseCmap() (err error) {
var offset int64
if err = t.Seek("cmap"); err != nil {
return
}
t.Skip(2) // version
numTables := int(t.ReadUShort())
offset31 := int64(0)
for j := 0; j < numTables; j++ {
platformID := t.ReadUShort()
encodingID := t.ReadUShort()
offset = int64(t.ReadULong())
if platformID == 3 && encodingID == 1 {
offset31 = offset
}
}
if offset31 == 0 {
err = fmt.Errorf("no Unicode encoding found")
return
}
startCount := make([]uint16, 0, 8)
endCount := make([]uint16, 0, 8)
idDelta := make([]int16, 0, 8)
idRangeOffset := make([]uint16, 0, 8)
t.rec.Chars = make(map[uint16]uint16)
t.f.Seek(int64(t.tables["cmap"])+offset31, os.SEEK_SET)
format := t.ReadUShort()
if format != 4 {
err = fmt.Errorf("unexpected subtable format: %d", format)
return
}
t.Skip(2 * 2) // length, language
segCount := int(t.ReadUShort() / 2)
t.Skip(3 * 2) // searchRange, entrySelector, rangeShift
for j := 0; j < segCount; j++ {
endCount = append(endCount, t.ReadUShort())
}
t.Skip(2) // reservedPad
for j := 0; j < segCount; j++ {
startCount = append(startCount, t.ReadUShort())
}
for j := 0; j < segCount; j++ {
idDelta = append(idDelta, t.ReadShort())
}
offset, _ = t.f.Seek(int64(0), os.SEEK_CUR)
for j := 0; j < segCount; j++ {
idRangeOffset = append(idRangeOffset, t.ReadUShort())
}
for j := 0; j < segCount; j++ {
c1 := startCount[j]
c2 := endCount[j]
d := idDelta[j]
ro := idRangeOffset[j]
if ro > 0 {
t.f.Seek(offset+2*int64(j)+int64(ro), os.SEEK_SET)
}
for c := c1; c <= c2; c++ {
if c == 0xFFFF {
break
}
var gid int32
if ro > 0 {
gid = int32(t.ReadUShort())
if gid > 0 {
gid += int32(d)
}
} else {
gid = int32(c) + int32(d)
}
if gid >= 65536 {
gid -= 65536
}
if gid > 0 {
t.rec.Chars[c] = uint16(gid)
}
}
}
return
}
func (t *ttfParser) ParseName() (err error) {
err = t.Seek("name")
if err == nil {
tableOffset, _ := t.f.Seek(0, os.SEEK_CUR)
t.rec.PostScriptName = ""
t.Skip(2) // format
count := t.ReadUShort()
stringOffset := t.ReadUShort()
for j := uint16(0); j < count && t.rec.PostScriptName == ""; j++ {
t.Skip(3 * 2) // platformID, encodingID, languageID
nameID := t.ReadUShort()
length := t.ReadUShort()
offset := t.ReadUShort()
if nameID == 6 {
// PostScript name
t.f.Seek(int64(tableOffset)+int64(stringOffset)+int64(offset), os.SEEK_SET)
var s string
s, err = t.ReadStr(int(length))
if err != nil {
return
}
s = strings.Replace(s, "\x00", "", -1)
var re *regexp.Regexp
if re, err = regexp.Compile("[(){}<> /%[\\]]"); err != nil {
return
}
t.rec.PostScriptName = re.ReplaceAllString(s, "")
}
}
if t.rec.PostScriptName == "" {
err = fmt.Errorf("the name PostScript was not found")
}
}
return
}
func (t *ttfParser) ParseOS2() (err error) {
err = t.Seek("OS/2")
if err == nil {
version := t.ReadUShort()
t.Skip(3 * 2) // xAvgCharWidth, usWeightClass, usWidthClass
fsType := t.ReadUShort()
t.rec.Embeddable = (fsType != 2) && (fsType&0x200) == 0
t.Skip(11*2 + 10 + 4*4 + 4)
fsSelection := t.ReadUShort()
t.rec.Bold = (fsSelection & 32) != 0
t.Skip(2 * 2) // usFirstCharIndex, usLastCharIndex
t.rec.TypoAscender = t.ReadShort()
t.rec.TypoDescender = t.ReadShort()
if version >= 2 {
t.Skip(3*2 + 2*4 + 2)
t.rec.CapHeight = t.ReadShort()
} else {
t.rec.CapHeight = 0
}
}
return
}
func (t *ttfParser) ParsePost() (err error) {
err = t.Seek("post")
if err == nil {
t.Skip(4) // version
t.rec.ItalicAngle = t.ReadShort()
t.Skip(2) // Skip decimal part
t.rec.UnderlinePosition = t.ReadShort()
t.rec.UnderlineThickness = t.ReadShort()
t.rec.IsFixedPitch = t.ReadULong() != 0
}
return
}
func (t *ttfParser) Seek(tag string) (err error) {
ofs, ok := t.tables[tag]
if ok {
t.f.Seek(int64(ofs), os.SEEK_SET)
} else {
err = fmt.Errorf("table not found: %s", tag)
}
return
}
func (t *ttfParser) Skip(n int) {
t.f.Seek(int64(n), os.SEEK_CUR)
}
func (t *ttfParser) ReadStr(length int) (str string, err error) {
var n int
buf := make([]byte, length)
n, err = t.f.Read(buf)
if err == nil {
if n == length {
str = string(buf)
} else {
err = fmt.Errorf("unable to read %d bytes", length)
}
}
return
}
func (t *ttfParser) ReadUShort() (val uint16) {
binary.Read(t.f, binary.BigEndian, &val)
return
}
func (t *ttfParser) ReadShort() (val int16) {
binary.Read(t.f, binary.BigEndian, &val)
return
}
func (t *ttfParser) ReadULong() (val uint32) {
binary.Read(t.f, binary.BigEndian, &val)
return
}

View File

@ -0,0 +1,18 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package textencoding
import "github.com/unidoc/unidoc/pdf/core"
type TextEncoder interface {
Encode(raw string) string
CharcodeToGlyphName(code byte) (string, bool)
RuneToCharcode(val rune) (byte, bool)
RuneToGlyphName(val rune) (string, bool)
GlyphNameToCharcode(glyph string) (byte, bool)
CharcodeToRune(charcode byte) (rune, bool)
ToPdfObject() core.PdfObject
}

View File

@ -0,0 +1,809 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package textencoding
import (
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/core"
)
func splitWords(raw string, encoder TextEncoder) []string {
runes := []rune(raw)
words := []string{}
startsAt := 0
for idx, code := range runes {
glyph, found := encoder.RuneToGlyphName(code)
if !found {
common.Log.Debug("Glyph not found for code: %s\n", string(code))
continue
}
if glyph == "space" {
word := runes[startsAt:idx]
words = append(words, string(word))
startsAt = idx + 1
}
}
word := runes[startsAt:]
if len(word) > 0 {
words = append(words, string(word))
}
return words
}
type WinAnsiEncoder struct {
}
func NewWinAnsiTextEncoder() WinAnsiEncoder {
encoder := WinAnsiEncoder{}
return encoder
}
func (winenc WinAnsiEncoder) ToPdfObject() core.PdfObject {
return core.MakeName("WinAnsiEncoding")
}
// Convert utf8 runes to WinAnsiEncoded encoded string (series of char codes).
func (winenc WinAnsiEncoder) Encode(raw string) string {
encoded := []byte{}
for _, rune := range raw {
if code, has := utf8ToWinAnsiEncodingMap[rune]; has {
encoded = append(encoded, code)
}
}
return string(encoded)
}
func (winenc WinAnsiEncoder) RuneToGlyphName(val rune) (string, bool) {
code, found := winenc.RuneToCharcode(val)
if !found {
return "", false
}
glyph, found := winenc.CharcodeToGlyphName(code)
if !found {
return "", false
}
return glyph, true
}
func (winenc WinAnsiEncoder) CharcodeToGlyphName(code byte) (string, bool) {
glyph, has := winAnsiEncodingGlyphMap[code]
if !has {
return "", false
}
return glyph, true
}
func (winenc WinAnsiEncoder) GlyphNameToCharcode(glyph string) (byte, bool) {
for code, name := range winAnsiEncodingGlyphMap {
if name == glyph {
return code, true
}
}
// Not found.
return 0, false
}
// Convert UTF-8 rune to character code. If applicable.
func (winenc WinAnsiEncoder) RuneToCharcode(val rune) (byte, bool) {
code, has := utf8ToWinAnsiEncodingMap[val]
if !has {
return 0, false
}
return code, true
}
func (winenc WinAnsiEncoder) CharcodeToRune(charcode byte) (rune, bool) {
val, has := winAnsiEncodingToUtf8Map[charcode]
if !has {
return 0, false
}
return val, true
}
// WinAnsiEncoding.
// Convert a UTF8 string to WinAnsiEncoding byte string.
func utf8ToWinAnsiEncoding(strUtf8 string) string {
encoded := []byte{}
for _, rune := range strUtf8 {
if code, has := utf8ToWinAnsiEncodingMap[rune]; has {
encoded = append(encoded, code)
}
}
return string(encoded)
}
// Maps to enable conversion of WinAnsiEncoding character codes to glyphs, utf8 and vice versa.
var winAnsiEncodingGlyphMap = map[byte]string{
32: "space",
33: "exclam",
34: "quotedbl",
35: "numbersign",
36: "dollar",
37: "percent",
38: "ampersand",
39: "quotesingle",
40: "parenleft",
41: "parenright",
42: "asterisk",
43: "plus",
44: "comma",
45: "hyphen",
46: "period",
47: "slash",
48: "zero",
49: "one",
50: "two",
51: "three",
52: "four",
53: "five",
54: "six",
55: "seven",
56: "eight",
57: "nine",
58: "colon",
59: "semicolon",
60: "less",
61: "equal",
62: "greater",
63: "question",
64: "at",
65: "A",
66: "B",
67: "C",
68: "D",
69: "E",
70: "F",
71: "G",
72: "H",
73: "I",
74: "J",
75: "K",
76: "L",
77: "M",
78: "N",
79: "O",
80: "P",
81: "Q",
82: "R",
83: "S",
84: "T",
85: "U",
86: "V",
87: "W",
88: "X",
89: "Y",
90: "Z",
91: "bracketleft",
92: "backslash",
93: "bracketright",
94: "asciicircum",
95: "underscore",
96: "grave",
97: "a",
98: "b",
99: "c",
100: "d",
101: "e",
102: "f",
103: "g",
104: "h",
105: "i",
106: "j",
107: "k",
108: "l",
109: "m",
110: "n",
111: "o",
112: "p",
113: "q",
114: "r",
115: "s",
116: "t",
117: "u",
118: "v",
119: "w",
120: "x",
121: "y",
122: "z",
123: "braceleft",
124: "bar",
125: "braceright",
126: "asciitilde",
127: "bullet",
128: "Euro",
129: "bullet",
130: "quotesinglbase",
131: "florin",
132: "quotedblbase",
133: "ellipsis",
134: "dagger",
135: "daggerdbl",
136: "circumflex",
137: "perthousand",
138: "Scaron",
139: "guilsinglleft",
140: "OE",
141: "bullet",
142: "Zcaron",
143: "bullet",
144: "bullet",
145: "quoteleft",
146: "quoteright",
147: "quotedblleft",
148: "quotedblright",
149: "bullet",
150: "endash",
151: "emdash",
152: "tilde",
153: "trademark",
154: "scaron",
155: "guilsinglright",
156: "oe",
157: "bullet",
158: "zcaron",
159: "Ydieresis",
160: "space",
161: "exclamdown",
162: "cent",
163: "sterling",
164: "currency",
165: "yen",
166: "brokenbar",
167: "section",
168: "dieresis",
169: "copyright",
170: "ordfeminine",
171: "guillemotleft",
172: "logicalnot",
173: "hyphen",
174: "registered",
175: "macron",
176: "degree",
177: "plusminus",
178: "twosuperior",
179: "threesuperior",
180: "acute",
181: "mu",
182: "paragraph",
183: "periodcentered",
184: "cedilla",
185: "onesuperior",
186: "ordmasculine",
187: "guillemotright",
188: "onequarter",
189: "onehalf",
190: "threequarters",
191: "questiondown",
192: "Agrave",
193: "Aacute",
194: "Acircumflex",
195: "Atilde",
196: "Adieresis",
197: "Aring",
198: "AE",
199: "Ccedilla",
200: "Egrave",
201: "Eacute",
202: "Ecircumflex",
203: "Edieresis",
204: "Igrave",
205: "Iacute",
206: "Icircumflex",
207: "Idieresis",
208: "Eth",
209: "Ntilde",
210: "Ograve",
211: "Oacute",
212: "Ocircumflex",
213: "Otilde",
214: "Odieresis",
215: "multiply",
216: "Oslash",
217: "Ugrave",
218: "Uacute",
219: "Ucircumflex",
220: "Udieresis",
221: "Yacute",
222: "Thorn",
223: "germandbls",
224: "agrave",
225: "aacute",
226: "acircumflex",
227: "atilde",
228: "adieresis",
229: "aring",
230: "ae",
231: "ccedilla",
232: "egrave",
233: "eacute",
234: "ecircumflex",
235: "edieresis",
236: "igrave",
237: "iacute",
238: "icircumflex",
239: "idieresis",
240: "eth",
241: "ntilde",
242: "ograve",
243: "oacute",
244: "ocircumflex",
245: "otilde",
246: "odieresis",
247: "divide",
248: "oslash",
249: "ugrave",
250: "uacute",
251: "ucircumflex",
252: "udieresis",
253: "yacute",
254: "thorn",
255: "ydieresis",
}
var winAnsiEncodingToUtf8Map = map[byte]rune{
32: '\u0020',
33: '\u0021',
34: '\u0022',
35: '\u0023',
36: '\u0024',
37: '\u0025',
38: '\u0026',
39: '\u0027',
40: '\u0028',
41: '\u0029',
42: '\u002a',
43: '\u002b',
44: '\u002c',
45: '\u002d',
46: '\u002e',
47: '\u002f',
48: '\u0030',
49: '\u0031',
50: '\u0032',
51: '\u0033',
52: '\u0034',
53: '\u0035',
54: '\u0036',
55: '\u0037',
56: '\u0038',
57: '\u0039',
58: '\u003a',
59: '\u003b',
60: '\u003c',
61: '\u003d',
62: '\u003e',
63: '\u003f',
64: '\u0040',
65: '\u0041',
66: '\u0042',
67: '\u0043',
68: '\u0044',
69: '\u0045',
70: '\u0046',
71: '\u0047',
72: '\u0048',
73: '\u0049',
74: '\u004a',
75: '\u004b',
76: '\u004c',
77: '\u004d',
78: '\u004e',
79: '\u004f',
80: '\u0050',
81: '\u0051',
82: '\u0052',
83: '\u0053',
84: '\u0054',
85: '\u0055',
86: '\u0056',
87: '\u0057',
88: '\u0058',
89: '\u0059',
90: '\u005a',
91: '\u005b',
92: '\u005c',
93: '\u005d',
94: '\u005e',
95: '\u005f',
96: '\u0060',
97: '\u0061',
98: '\u0062',
99: '\u0063',
100: '\u0064',
101: '\u0065',
102: '\u0066',
103: '\u0067',
104: '\u0068',
105: '\u0069',
106: '\u006a',
107: '\u006b',
108: '\u006c',
109: '\u006d',
110: '\u006e',
111: '\u006f',
112: '\u0070',
113: '\u0071',
114: '\u0072',
115: '\u0073',
116: '\u0074',
117: '\u0075',
118: '\u0076',
119: '\u0077',
120: '\u0078',
121: '\u0079',
122: '\u007a',
123: '\u007b',
124: '\u007c',
125: '\u007d',
126: '\u007e',
127: '\u2022',
128: '\u20ac',
129: '\u2022',
130: '\u201a',
131: '\u0192',
132: '\u201e',
133: '\u2026',
134: '\u2020',
135: '\u2021',
136: '\u02c6',
137: '\u2030',
138: '\u0160',
139: '\u2039',
140: '\u0152',
141: '\u2022',
142: '\u017d',
143: '\u2022',
144: '\u2022',
145: '\u2018',
146: '\u2019',
147: '\u201c',
148: '\u201d',
149: '\u2022',
150: '\u2013',
151: '\u2014',
152: '\u02dc',
153: '\u2122',
154: '\u0161',
155: '\u203a',
156: '\u0153',
157: '\u2022',
158: '\u017e',
159: '\u0178',
160: '\u0020',
161: '\u00a1',
162: '\u00a2',
163: '\u00a3',
164: '\u00a4',
165: '\u00a5',
166: '\u00a6',
167: '\u00a7',
168: '\u00a8',
169: '\u00a9',
170: '\u00aa',
171: '\u00ab',
172: '\u00ac',
173: '\u002d',
174: '\u00ae',
175: '\u00af',
176: '\u00b0',
177: '\u00b1',
178: '\u00b2',
179: '\u00b3',
180: '\u00b4',
181: '\u00b5',
182: '\u00b6',
183: '\u00b7',
184: '\u00b8',
185: '\u00b9',
186: '\u00ba',
187: '\u00bb',
188: '\u00bc',
189: '\u00bd',
190: '\u00be',
191: '\u00bf',
192: '\u00c0',
193: '\u00c1',
194: '\u00c2',
195: '\u00c3',
196: '\u00c4',
197: '\u00c5',
198: '\u00c6',
199: '\u00c7',
200: '\u00c8',
201: '\u00c9',
202: '\u00ca',
203: '\u00cb',
204: '\u00cc',
205: '\u00cd',
206: '\u00ce',
207: '\u00cf',
208: '\u00d0',
209: '\u00d1',
210: '\u00d2',
211: '\u00d3',
212: '\u00d4',
213: '\u00d5',
214: '\u00d6',
215: '\u00d7',
216: '\u00d8',
217: '\u00d9',
218: '\u00da',
219: '\u00db',
220: '\u00dc',
221: '\u00dd',
222: '\u00de',
223: '\u00df',
224: '\u00e0',
225: '\u00e1',
226: '\u00e2',
227: '\u00e3',
228: '\u00e4',
229: '\u00e5',
230: '\u00e6',
231: '\u00e7',
232: '\u00e8',
233: '\u00e9',
234: '\u00ea',
235: '\u00eb',
236: '\u00ec',
237: '\u00ed',
238: '\u00ee',
239: '\u00ef',
240: '\u00f0',
241: '\u00f1',
242: '\u00f2',
243: '\u00f3',
244: '\u00f4',
245: '\u00f5',
246: '\u00f6',
247: '\u00f7',
248: '\u00f8',
249: '\u00f9',
250: '\u00fa',
251: '\u00fb',
252: '\u00fc',
253: '\u00fd',
254: '\u00fe',
255: '\u00ff',
}
var utf8ToWinAnsiEncodingMap = map[rune]byte{
'\u0020': 32,
'\u0021': 33,
'\u0022': 34,
'\u0023': 35,
'\u0024': 36,
'\u0025': 37,
'\u0026': 38,
'\u0027': 39,
'\u0028': 40,
'\u0029': 41,
'\u002a': 42,
'\u002b': 43,
'\u002c': 44,
'\u002d': 45,
'\u002e': 46,
'\u002f': 47,
'\u0030': 48,
'\u0031': 49,
'\u0032': 50,
'\u0033': 51,
'\u0034': 52,
'\u0035': 53,
'\u0036': 54,
'\u0037': 55,
'\u0038': 56,
'\u0039': 57,
'\u003a': 58,
'\u003b': 59,
'\u003c': 60,
'\u003d': 61,
'\u003e': 62,
'\u003f': 63,
'\u0040': 64,
'\u0041': 65,
'\u0042': 66,
'\u0043': 67,
'\u0044': 68,
'\u0045': 69,
'\u0046': 70,
'\u0047': 71,
'\u0048': 72,
'\u0049': 73,
'\u004a': 74,
'\u004b': 75,
'\u004c': 76,
'\u004d': 77,
'\u004e': 78,
'\u004f': 79,
'\u0050': 80,
'\u0051': 81,
'\u0052': 82,
'\u0053': 83,
'\u0054': 84,
'\u0055': 85,
'\u0056': 86,
'\u0057': 87,
'\u0058': 88,
'\u0059': 89,
'\u005a': 90,
'\u005b': 91,
'\u005c': 92,
'\u005d': 93,
'\u005e': 94,
'\u005f': 95,
'\u0060': 96,
'\u0061': 97,
'\u0062': 98,
'\u0063': 99,
'\u0064': 100,
'\u0065': 101,
'\u0066': 102,
'\u0067': 103,
'\u0068': 104,
'\u0069': 105,
'\u006a': 106,
'\u006b': 107,
'\u006c': 108,
'\u006d': 109,
'\u006e': 110,
'\u006f': 111,
'\u0070': 112,
'\u0071': 113,
'\u0072': 114,
'\u0073': 115,
'\u0074': 116,
'\u0075': 117,
'\u0076': 118,
'\u0077': 119,
'\u0078': 120,
'\u0079': 121,
'\u007a': 122,
'\u007b': 123,
'\u007c': 124,
'\u007d': 125,
'\u007e': 126,
'\u2022': 127,
'\u20ac': 128,
// '\u2022': 129, // duplicate
'\u201a': 130,
'\u0192': 131,
'\u201e': 132,
'\u2026': 133,
'\u2020': 134,
'\u2021': 135,
'\u02c6': 136,
'\u2030': 137,
'\u0160': 138,
'\u2039': 139,
'\u0152': 140,
//'\u2022': 141, // duplicate
'\u017d': 142,
//'\u2022': 143, // duplicate
// '\u2022': 144, // duplicate
'\u2018': 145,
'\u2019': 146,
'\u201c': 147,
'\u201d': 148,
//'\u2022': 149, // duplicate
'\u2013': 150,
'\u2014': 151,
'\u02dc': 152,
'\u2122': 153,
'\u0161': 154,
'\u203a': 155,
'\u0153': 156,
//'\u2022': 157, // duplicate
'\u017e': 158,
'\u0178': 159,
//'\u0020': 160, // duplicate
'\u00a1': 161,
'\u00a2': 162,
'\u00a3': 163,
'\u00a4': 164,
'\u00a5': 165,
'\u00a6': 166,
'\u00a7': 167,
'\u00a8': 168,
'\u00a9': 169,
'\u00aa': 170,
'\u00ab': 171,
'\u00ac': 172,
//'\u002d': 173, // duplicate
'\u00ae': 174,
'\u00af': 175,
'\u00b0': 176,
'\u00b1': 177,
'\u00b2': 178,
'\u00b3': 179,
'\u00b4': 180,
'\u00b5': 181,
'\u00b6': 182,
'\u00b7': 183,
'\u00b8': 184,
'\u00b9': 185,
'\u00ba': 186,
'\u00bb': 187,
'\u00bc': 188,
'\u00bd': 189,
'\u00be': 190,
'\u00bf': 191,
'\u00c0': 192,
'\u00c1': 193,
'\u00c2': 194,
'\u00c3': 195,
'\u00c4': 196,
'\u00c5': 197,
'\u00c6': 198,
'\u00c7': 199,
'\u00c8': 200,
'\u00c9': 201,
'\u00ca': 202,
'\u00cb': 203,
'\u00cc': 204,
'\u00cd': 205,
'\u00ce': 206,
'\u00cf': 207,
'\u00d0': 208,
'\u00d1': 209,
'\u00d2': 210,
'\u00d3': 211,
'\u00d4': 212,
'\u00d5': 213,
'\u00d6': 214,
'\u00d7': 215,
'\u00d8': 216,
'\u00d9': 217,
'\u00da': 218,
'\u00db': 219,
'\u00dc': 220,
'\u00dd': 221,
'\u00de': 222,
'\u00df': 223,
'\u00e0': 224,
'\u00e1': 225,
'\u00e2': 226,
'\u00e3': 227,
'\u00e4': 228,
'\u00e5': 229,
'\u00e6': 230,
'\u00e7': 231,
'\u00e8': 232,
'\u00e9': 233,
'\u00ea': 234,
'\u00eb': 235,
'\u00ec': 236,
'\u00ed': 237,
'\u00ee': 238,
'\u00ef': 239,
'\u00f0': 240,
'\u00f1': 241,
'\u00f2': 242,
'\u00f3': 243,
'\u00f4': 244,
'\u00f5': 245,
'\u00f6': 246,
'\u00f7': 247,
'\u00f8': 248,
'\u00f9': 249,
'\u00fa': 250,
'\u00fb': 251,
'\u00fc': 252,
'\u00fd': 253,
'\u00fe': 254,
'\u00ff': 255,
}

View File

@ -0,0 +1,24 @@
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package textencoding
import "testing"
func TestWinAnsiEncoder(t *testing.T) {
enc := NewWinAnsiTextEncoder()
glyph, found := enc.CharcodeToGlyphName(32)
if !found || glyph != "space" {
t.Errorf("Glyph != space")
return
}
glyph, found = enc.RuneToGlyphName('þ')
if !found || glyph != "thorn" {
t.Errorf("Glyph != thorn")
return
}
}