odtfontfind

package module
v0.0.0-...-5e25c7e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 6 Imported by: 1

README

GoDoc Go Report Card

odtfontfind

The purpose of odtfontfind is to determine font-families that are used in a LibreOffice document or in an SVG Inkscape image.

Installation

To install the client, run

GOBIN=~/bin go install github.com/StefanSchroeder/odtfontfind/odtfontfind-client@latest
~/bin/odtfontfind-client ~/sample-file.odt

The result might look like this

Liberation Serif
Liberation Sans
Microsoft YaHei

But usually you might want to use the library. In this case, no install is required, just reference the library in your import statement and let go get do its thing. Visit https://github.com/StefanSchroeder/apt-font for an example of an application that uses this library.

Caveats

You could easily construct input files that make the library barf. The library will bail out. Let me know if you come across this case.

The main reason why retrieval of fonts might fail is that the input file is corrupt.

License

The license is MIT.

References

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#property-fo_font-family

Documentation

Overview

This package implements a library to retrieve the font-family from a small variety of file formats, in particular LibreOffice and Inkscape SVG files.

This library comes with a client program that shows how to use it and is a valuable tool all by itself. Stefan Schröder 2019

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LibreofficeFontReader

func LibreofficeFontReader(fname string) (ret []string)

func SvgFontReader

func SvgFontReader(fname string) (ret []string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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