xProject
A Pythonic API for scripting font source data for parametric variable fonts.
draft
xProject.verbose |
Enable/disable console output. |
xProject.settingsFile |
The name of the project settings file. |
xProject.settingsPath |
Returns the full path of the settings file. |
xProject.designspaceFile |
Returns the name of the designspace file. |
xProject.designspacePath |
Returns the full path of the designspace file. |
xProject.designspace |
Returns a fontTools designspace object (after building). |
xProject.parametricAxes |
A list of parametric axes as 4-letter tags. |
xProject.parametricAxesNames |
A dict with custom parametric axis names (values) for 4-letter tags (keys). |
xProject.parametricAxesHidden |
A switch to make parametric axes hidden (or not). |
xProject.sourcesFolderName |
The name of the sources folder. |
xProject.sourcesFolder |
Returns the full path of the sources folder. |
xProject.sourcesPaths |
Returns a list with the full paths of all parametric UFO sources. |
xProject.sources |
Returns a dict of tuning locations (keys) and their UFO sources (values). |
xProject.defaultName |
The name of the default source. |
xProject.defaultSourcePath |
Returns the full path of the default source. |
xProject.defaultLocation |
Returns the parametric location of the default source. |
xProject.defaultFont |
Returns an RFont object of the default font (cached). |
xProject.measurementsFile |
The name of the measurements file. |
xProject.measurementsPath |
Returns the full path of the measurements file. |
xProject.measurements |
Returns the imported measurements as a dictionary. |
xProject.measurementsDefault |
Returns a dictionary with measurements of the default source. |
xProject.smartSetsFile |
Returns the name of the smart sets file. |
xProject.smartSetsPath |
Returns the full path of the smart sets file. |
xProject.smartSets |
Returns the imported smart sets as a two-level dictionary (cases > groups). |
xProject.glyphConstructionsFile |
Returns the name of the glyph construction file. |
xProject.glyphConstructionsPath |
Returns the full path of the glyph construction file. |
xProject.glyphConstructionsRaw |
Returns the raw glyph construction source. |
xProject.glyphConstructions |
Returns the project’s glyph constructions as a dictionary. |
xProject.blendsFile |
The name of the blends file. |
xProject.blendsPath |
Returns the full path of the blends file. |
xProject.blendedAxes |
Returns the imported blended axes as a dictionary. |
xProject.blendedSources |
Returns the imported blended sources as a dictionary. |
xProject.tuning |
Enable/disable tuning (optional, disabled by default). |
xProject.tuningLevels |
The level(s) of tuning to include in the designspace. |
xProject.tuningSourcesFolderName |
The name of the tuning folder. |
xProject.tuningAxesHidden |
A switch to make tuning axes hidden (or not). |
xProject.tuningSourcesFolder |
Returns the full path of the tuning sources subfolder. |
xProject.tuningSourcesPaths |
Returns a list with the full paths of all tuning UFO sources. |
xProject.tuningSources |
Returns a dict of tuning locations (keys) and their UFO sources (values). |
xProject.tuningAxes |
A dict of blended location names (keys) and tuning axes (values). |
xProject.referenceSourcesFolderName |
The name of the reference folder. |
xProject.referenceSourcesFolder |
Returns the full path of the reference sources subfolder. |
xProject.referenceSourcesPaths |
Returns a list with the full paths of all reference UFO sources. |
xProject.referenceBlendsPath |
Returns the full path of the blends file for reference sources. |
xProject.referenceFontName |
The name of the reference font file. |
xProject.referenceFontPath |
Returns the full path of the reference variable font file. |
xProject.instancesFolderName |
The name of the instances folder. |
xProject.instancesFolder |
Returns the full path of the UFO instances folder. |
xProject.fontsFolderName |
The name of the fonts folder. |
xProject.fontsFolder |
Returns the full path of the binary fonts folder. |
xProject.varFontFile |
Returns the name of the variable font file. |
xProject.varFontPath |
Returns the full path of the variable font file. |
xProject.proofsFolderName |
The name of the proofs folder. |
xProject.proofsFolder |
Returns the full path of the proofs folder. |
xProject.setSourceNamesFromMeasurements |
Set source names from the actual measurement value in each source. |
xProject.createParametricSources |
Create fresh min/max sources for parametric axes from default. |
xProject.createMeasurementsFile |
Create a fresh measurements file. |
xProject.createSmartSetsFile |
Create a fresh smart sets file. |
xProject.createGlyphConstructionFile |
Create a fresh glyph construction file. |
xProject.updateGlyphsFromDefault |
Update default glyphs in all sources. |
xProject.copyGlyphsFromDefault |
Copy glyphs from the default source to other sources. |
xProject.copyGroupsFromDefault |
Copy groups from the default source to other sources. |
xProject.copyKerningFromDefault |
Copy glyphs from the default source to other sources. |
xProject.copyUnicodesFromDefault |
Copy unicodes from the default source to all other sources. |
xProject.copyGlyphOrderFromDefault |
Copy glyph order from the default source to all other sources. |
xProject.buildCompositeGlyphs |
Build composite glyphs from glyph constructions. |
xProject.splitSources |
Split new parametric sources from existing sources. |
xProject.createTuningSources |
Initialize tuning sources for all blended locations. |
xProject.calculateTuningSources |
Calculate tuning sources for glyphs based on reference default source. |
xProject.resetTuningSources |
Clear all glyphs from all tuning sources. |
xProject.addParametricAxes |
Add parametric axes to the designspace. |
xProject.addParametricSources |
Add parametric sources to the designspace. |
xProject.addDefaultSource |
Add the default source to the designspace. |
xProject.addTuningAxes |
Add tuning axes to the designspace. |
xProject.addTuningSources |
Add tuning sources to the designspace. |
xProject.addBlendedAxes |
Add blended axes to the designspace. |
xProject.addBlendedSources |
Add blended sources (mappings) to the designspace. |
xProject.addInstances |
Add instances to the designspace. |
xProject.buildDesignspace |
Build designspace file from source data. |
xProject.buildInstances |
Build UFO instances for blended sources. |
xProject.buildVariableFont |
Build avar2 variable font from designspace. |
xProject.cleanupSources |
Remove unnecessary data from UFO sources. |
xProject.normalizeSources |
Normalize UFO sources. |
xProject.addCustomKeysToLib |
Save paths to data files in the designspace lib. |
xProject.save |
Save current designspace to file. |
xProject.printAxes |
Print a list of all variation axes in this project. |
xProject.printSettings |
Print an overview of this project’s settings. |
xProject.validateDesignspace |
Validate range of designspace locations. |
xProject.validateSources |
Validate glyph attributes in all sources against the default. |
xProject.proofGlyphMemes |
Build glyph meme PDF proofs. |
xProject.proofSourcesGlyphSet |
Build glyph set PDF proofs. |
xProject.proofBlends |
Build PDF proof of blends. |
xProject.proofTuning |
Build PDF proofs of tuning sources. |