Skip to content
/ metadata Public

Basic font metadata fetcher/updater for the MFEK project

License

Notifications You must be signed in to change notification settings

MFEK/metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MFEKmetadata — UFO font metadata fetcher

Basic metadata fetcher for the MFEK project. It interrogates UFO fonts, for now mostly fontinfo.plist—also determines a list of glyphs.

      ___           ___         ___           ___     
     /\  \         /\__\       /\__\         /|  |    
    |::\  \       /:/ _/_     /:/ _/_       |:|  |    
    |:|:\  \     /:/ /\__\   /:/ /\__\      |:|  |    
  __|:|\:\  \   /:/ /:/  /  /:/ /:/ _/_   __|:|  |    
 /::::|_\:\__\ /:/_/:/  /  /:/_/:/ /\__\ /\ |:|__|____                     __                __           __         
 \:\~~\  \/__/ \:\/:/  /   \:\/:/ /:/  / \:\/:::::/__/   ____ ___   ___   / /_  ____ _  ____/ /  ____ _  / /_  ____ _
  \:\  \        \::/__/     \::/_/:/  /   \::/~~/~      / __ `__ \ / _ \ / __/ / __ `/ / __  /  / __ `/ / __/ / __ `/
   \:\  \        \:\  \      \:\/:/  /     \:\~~\      / / / / / //  __// /_  / /_/ / / /_/ /  / /_/ / / /_  / /_/ / 
    \:\__\        \:\__\      \::/  /       \:\__\    /_/ /_/ /_/ \___/ \__/  \__,_/  \__,_/   \__,_/  \__/  \__,_/  
     \/__/         \/__/       \/__/         \/__/                                                                   

MFEKmetadata 0.0.4-beta1
Fredrick Brennan <copypaste@kittens.ph>
Basic metadata fetcher for the MFEK project. It interrogates UFO fonts, for now mostly fontinfo.plist

USAGE:
    MFEKmetadata <PATH> <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <PATH>    Sets the input file (glif/UFO/rarely plist) to use

SUBCOMMANDS:
    arbitrary         Performs arbitrary operations on a plist file, by default a font's fontinfo.plist.
                      
                      Note: The arguments `-k`, `-v`, and `-d` must be provided multiple times for multiple values,
                      not delimited.
    glyph             Dumps a single font glyph in the format of `MFEKmetadata glyphs`
    glyphpathlen      Show length of contours in a glyph (.glif) on separate lines
    glyphs            Dumps the font's glyphs
    glyphslen         Show number of glyphs in font
    help              Prints this message or the help of the given subcommand(s)
    write_metainfo    
MFEKmetadata-arbitrary 0.0.2-beta1
Performs arbitrary operations on a plist file, by default a font's fontinfo.plist.

Note: The arguments `-k`, `-v`, and `-d` must be provided multiple times for multiple values, not delimited.

USAGE:
    MFEKmetadata <PATH> arbitrary [OPTIONS] --key <key>...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -k, --key <key>...           List of key values to display, one per line, in order requested
    -v, --value <value>...       List of values to write, in order requested
    -d, --delete <key>...        List of keys to delete from the plist
    -X, --xml-redirect <FILE>    Redirect XML to this path instead. Use /dev/stdout or /dev/stderr if that's what you
                                 want, `-` not recognized.
MFEKmetadata-glyphs 
Dumps the font's glyphs

USAGE:
    MFEKmetadata <UFO_OR_GLIF> glyphs

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
MFEKmetadata-glyphslen 
Show number of glyphs in font

USAGE:
    MFEKmetadata glyphslen

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
MFEKmetadata-glyphpathlen
Show length of contours in a glyph (.glif) on separate lines

USAGE:
    MFEKmetadata glyphpathlen [FLAGS] [OPTIONS]

FLAGS:
    -s, --segmentwise    Display length of each segment separated by spaces
    -j, --joined         Display one line: sum of joined path
    -J, --json           Output JSON instead
    -h, --help           Prints help information
    -V, --version        Prints version information

OPTIONS:
        --accuracy <accuracy>    Precision of length calculation [default: 0.01]

License

Copyright 2020–2021 Fredrick R. Brennan & MFEK Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this software or any of the provided source code files except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.  See the License for the
specific language governing permissions and limitations under the License.

By contributing you release your contribution under the terms of the license.

About

Basic font metadata fetcher/updater for the MFEK project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages