<commit_before>/*
	Go Language Raspberry Pi Interface
	(c) Copyright <NAME> 2016-2018
	All Rights Reserved
	Documentation http://djthorpe.github.io/gopi/
	For Licensing and Usage information, please see LICENSE.md
*/

package gopi

////////////////////////////////////////////////////////////////////////////////
// TYPES

// Font flags
type FontFlags uint16

////////////////////////////////////////////////////////////////////////////////
// INTERFACES

// Manager for fonts
type FontManager interface {
	Driver

	// Open a font face - first face at index 0 is loaded
	OpenFace(path string) (FontFace, error)

	// Open a font face - indexed within file of several faces
	OpenFaceAtIndex(path string, index uint) (FontFace, error)

	/*


		// Open font faces at path, checking to see if individual files should
		// be opened through a callback function
		OpenFacesAtPath(path string, callback func(path string, info os.FileInfo) bool) error

		// Destroy a font face
		DestroyFace(FontFace) error

		// Return an array of font families which are loaded
		Families() []string

		// Return faces in a family and/or with a particular set of attributes
		Faces(family string, flags FontFlags) []FontFace
	*/
}

// Abstract font face interface
type FontFace interface {

	// Get Face Name (from the filename)
	Name() string
<commit_msg>Updated font interface<commit_after>/*
	Go Language Raspberry Pi Interface
	(c) Copyright <NAME> 2016-2018
	All Rights Reserved
	Documentation http://djthorpe.github.io/gopi/
	For Licensing and Usage information, please see LICENSE.md
*/

package gopi

import "os"

////////////////////////////////////////////////////////////////////////////////
// TYPES

// Font flags
type FontFlags uint16

////////////////////////////////////////////////////////////////////////////////
// INTERFACES

// FontManager for font management
type FontManager interface {
	Driver

	// Open a font face - first face at index 0 is loaded
	OpenFace(path string) (FontFace, error)

	// Open a font face - indexed within file of several faces
	OpenFaceAtIndex(path string, index uint) (FontFace, error)

	// Open font faces at path, checking to see if individual files should
	// be opened through a callback function
	OpenFacesAtPath(path string, callback func(path string, info os.FileInfo) bool) error

	// Destroy a font face
	DestroyFace(FontFace) error

	// Return an array of font families which are loaded
	Families() []string

	// Return faces in a family and/or with a particular set of attributes
	Faces(family string, flags FontFlags) []FontFace
}

// Abstract font face interface
type FontFace interface {

	// Get Face Name (from the filename)
	Name() string

{'fraction_non_alphanumeric': 0.18635855385762207, 'fraction_numerical': 0.008199776369735371, 'mean_word_length': 2.249394673123487, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2152749', 'n_tokens_mistral': 735, 'n_tokens_neox': 675, 'n_words': 297}