One specific font won’t load name into a new fontset
-
This generally works fine… ??
When adding Miltonian .woff from https://google-webfonts-helper.herokuapp.com/fonts/miltonian?subsets=latin
into a new fontset the font name (mandatory) isn’t auto populated and then I can’t reference the font via javascript
ThanksjQuery(document).ready(function( $ ){ $("body").on("fontsampler.event.activatefont", ".fontsampler-wrapper", function (myevent) { console.log ($(myevent.target).find(".font-lister option:selected").val()) // the index of the selected option console.log ($(myevent.target).find(".font-lister option:selected").html()) // the displayed name of the selected option });
get
fontsampler.js?ver=5.7:116 Uncaught TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at n.r._updateFeatureControls (fontsampler.js?ver=5.7:116) at n.r._onActivateFont (fontsampler.js?ver=5.7:116) at e.t.publish (fontsampler.js?ver=5.7:114) at t.n._selectFont (fontsampler.js?ver=5.7:116) at r (fontsampler.js?ver=5.7:117) at HTMLSelectElement.onChange (fontsampler.js?ver=5.7:117) at Object.triggerCallback (fontsampler.js?ver=5.7:117) at a.change (fontsampler.js?ver=5.7:117) at a.select (fontsampler.js?ver=5.7:117) r._updateFeatureControls @ fontsampler.js?ver=5.7:116 r._onActivateFont @ fontsampler.js?ver=5.7:116 t.publish @ fontsampler.js?ver=5.7:114 n._selectFont @ fontsampler.js?ver=5.7:116 r @ fontsampler.js?ver=5.7:117 onChange @ fontsampler.js?ver=5.7:117 triggerCallback @ fontsampler.js?ver=5.7:117 change @ fontsampler.js?ver=5.7:117 select @ fontsampler.js?ver=5.7:117 click @ fontsampler.js?ver=5.7:117 dispatch @ jquery.min.js?ver=3.5.1:2 v.handle @ jquery.min.js?ver=3.5.1:2
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘One specific font won’t load name into a new fontset’ is closed to new replies.