-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts #1163
Fonts #1163
Commits on Oct 30, 2021
-
Improve text font support. Improve naming to differentiate between text fonts and music fonts (for engraving). Remove DEFAULT_ prefix. Use Font.SERIF and Font.SANS_SERIF instead of 'Times' and 'Arial'. Rename getFontStack().
Configuration menu - View commit details
-
Copy full SHA for aa3ee32 - Browse repository at this point
Copy the full SHA aa3ee32View commit details -
Load Roboto Slab and PetalumaScript with the FontFace API before runn…
…ing VexFlow tests. This fixes the test case: ChordSymbol › Chord Symbol Font Size Tests › Canvas + Bravura Publish npm package vexflow-fonts (stored in tools/woff/). This allows the *.woff, *.woff2, and *.otf to be hosted on unpkg/jsdelivr. flow.html loads the web fonts directly from unpkg. Command line QUnit test now uses flow-headless-browser.html instead (it's much simpler).
Configuration menu - View commit details
-
Copy full SHA for b5f11c6 - Browse repository at this point
Copy the full SHA b5f11c6View commit details -
Improve how we handle default static TEXT_FONT. Factory.Annotation(params) now takes a FontInfo object. Note: Factory.Annotation() has a different default font than new Annotation(). Rename this.textFont to this.textFormatter.
Configuration menu - View commit details
-
Copy full SHA for 4b5727d - Browse repository at this point
Copy the full SHA 4b5727dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63d84b2 - Browse repository at this point
Copy the full SHA 63d84b2View commit details -
Add an element ID to the title div of test cases on flow.html.
This allows us to use fragment identifiers to scroll directly to a test case (by using the name of the PNG file generated by our visual regression tests). Explore loading custom fonts in node JS. Temporarily get back to zero visual diffs for the purposes of code review by unfixing some bugs: - restore inconsistent font families. - restore the bug in ChordSymbol + PetalumaScript.
Configuration menu - View commit details
-
Copy full SHA for 5bd02f3 - Browse repository at this point
Copy the full SHA 5bd02f3View commit details -
Move general font methods into Font class.
Methods remaining in TextFont deal with formatting / metrics. TextFont will be renamed to TextFormatter.
Configuration menu - View commit details
-
Copy full SHA for accf4f2 - Browse repository at this point
Copy the full SHA accf4f2View commit details -
Rename TextFont to TextFormatter.
Rename TextFontTests to FontTests. Remove unused code.
Configuration menu - View commit details
-
Copy full SHA for 4422613 - Browse repository at this point
Copy the full SHA 4422613View commit details -
Reorganize fonts in the tools/ folder.
Attempt to read/write OTF files. Cannot currently convert to WOFF. Continue to rely on FontSquirrel for now. Use the FontSquirrel version of PetalumaScript for better kerning. Add information on how to convert the OTF to WOFF via FontSquirrel.
Configuration menu - View commit details
-
Copy full SHA for 35ad621 - Browse repository at this point
Copy the full SHA 35ad621View commit details -
Lazy loading of fonts only works when globalObject is not defined.
Move OTF files. Bump vexflow-fonts. Clean up font scripts.
Configuration menu - View commit details
-
Copy full SHA for 2f2b341 - Browse repository at this point
Copy the full SHA 2f2b341View commit details -
Simple glyph inspector for Bravura/Petaluma.
Update the legacy glyphs.html and transform.html.
Configuration menu - View commit details
-
Copy full SHA for 8ef22c5 - Browse repository at this point
Copy the full SHA 8ef22c5View commit details -
Use the global font stack instead of the Element's local font stack.
Use a precomputed string as a key for the glyph cache. Move new glyph inspector and legacy font tools to tools/fonts/. Update CHANGELOG.
Configuration menu - View commit details
-
Copy full SHA for 9511e46 - Browse repository at this point
Copy the full SHA 9511e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecfdd27 - Browse repository at this point
Copy the full SHA ecfdd27View commit details -
Improve API for Flow and Tables.
Fix visual diff in textbracket_tests.ts. More clean up.
Configuration menu - View commit details
-
Copy full SHA for 3393d37 - Browse repository at this point
Copy the full SHA 3393d37View commit details -
- Support all fonts. - Support both OTF and extracted outlines. Add more documentation. Other small fixes.
Configuration menu - View commit details
-
Copy full SHA for e07046b - Browse repository at this point
Copy the full SHA e07046bView commit details -
Use FontWeight / FontStyle constants more consistently.
Improve OTF glyph inspector (Gonville font). Fix demos. Discovered a potential API stumbling block by writing tests.
Configuration menu - View commit details
-
Copy full SHA for b5cb75d - Browse repository at this point
Copy the full SHA b5cb75dView commit details -
Consolidate the setFont(...) API and handle edge cases.
Add .font setter/getter to Element and rename internal instance member to `textFont`. Add test code for setFont() in tests/font_tests.ts. Other smaller fixes.
Configuration menu - View commit details
-
Copy full SHA for 79c3540 - Browse repository at this point
Copy the full SHA 79c3540View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c849c - Browse repository at this point
Copy the full SHA 51c849cView commit details -
Fix Gruntfile and tsconfig to emit .d.ts and support ESM. Improve flow.html. Review tests/* for API differences. Mark changed lines with "RONYEH" and revert those lines to current master where possible. This is only for simplifying the code review. Afterward, I will add a single commit re-introducing all the commented-out lines, which will result in small visual diffs in the output. Revert setFont(...) and .font='...' calls to current master, to demonstrate the 4.0 API is (mostly) backwards compatible. For extra robustness (and backwards compatibility), we support empty strings for weight & style. '' is equivalent to 'normal'.
Configuration menu - View commit details
-
Copy full SHA for d6af5c3 - Browse repository at this point
Copy the full SHA d6af5c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1b596e - Browse repository at this point
Copy the full SHA e1b596eView commit details
Commits on Nov 1, 2021
-
Disable FontFace warnings to support distributions without the FontFace
declarations. Fix eslint warnings.
Configuration menu - View commit details
-
Copy full SHA for cee8ff3 - Browse repository at this point
Copy the full SHA cee8ff3View commit details -
Separate the setFont (all arguments undefined) into its own case,
to support older TS compilers that complain about object spread with undefined.
Configuration menu - View commit details
-
Copy full SHA for 910fa34 - Browse repository at this point
Copy the full SHA 910fa34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a50d3a - Browse repository at this point
Copy the full SHA 7a50d3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6823ab6 - Browse repository at this point
Copy the full SHA 6823ab6View commit details
Commits on Nov 3, 2021
-
Use the package.json exports field to handle different VexFlow bundles.
https://webpack.js.org/guides/package-exports/ Fix comments.
Configuration menu - View commit details
-
Copy full SHA for bf45050 - Browse repository at this point
Copy the full SHA bf45050View commit details -
Partial merge of branch 'master' into setFont.
Includes relative path imports for test files from: 0xfe#1209
Configuration menu - View commit details
-
Copy full SHA for 0403e59 - Browse repository at this point
Copy the full SHA 0403e59View commit details
Commits on Nov 4, 2021
-
Update demos. Fix capitalization. Fix README. eslint autofix markdown and JS.
Configuration menu - View commit details
-
Copy full SHA for bbfe811 - Browse repository at this point
Copy the full SHA bbfe811View commit details -
Fix an integration issue where common.d.ts isn't exported but it is referenced by TS files. Solution: remove common.d.ts and move types to where they are actually used. Fix issues caused by renaming output files.
Configuration menu - View commit details
-
Copy full SHA for ff1a9d3 - Browse repository at this point
Copy the full SHA ff1a9d3View commit details