fgg

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fgg 提供基于 fogleman/gg 的页面栅格化后端(fogleman API + freetype/raster,FloatTech/gg 的上游原版),通过空白导入注册到 internal/render 的注册表(Go image 包风格):

import _ "github.com/zc310/ofd/internal/render/backends/fgg"

之后即可用 drawing.BackendFGG="fgg" 作为栅格后端名,或经 converter.RasterBackend("fgg") 使用。 只用于渲染速度对照实验,不承诺与 canvas/gogpu 的逐像素输出一致。 渲染上下文状态机由 internal/render/backends/rastercore 共享,本包只依赖 geom 类型,不依赖 tdewolff/canvas。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(width, height float64, resolution geom.Resolution) (drawing.Backend, error)

New 创建 fogleman/gg 光栅后端。输出分辨率和像素尺寸规则与 gogpu/gg 后端一致。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL