{"id":85,"date":"2013-09-14T12:07:00","date_gmt":"2013-09-14T11:07:00","guid":{"rendered":"http:\/\/www.celesteh.com\/blog\/2013\/09\/14\/fridays-pos\/"},"modified":"2015-06-19T00:23:05","modified_gmt":"2015-06-18T23:23:05","slug":"fridays-pos","status":"publish","type":"post","link":"https:\/\/www.celesteh.com\/blog\/2013\/09\/14\/fridays-pos\/","title":{"rendered":"Friday&#8217;s Post"},"content":{"rendered":"<p>I found a really very handy <a href=\"http:\/\/www.smufl.org\/files\/smufl-0.6.pdf\">PDF document<\/a> showing every single available music glyph in the Bravura font, organised by type. Gaze upon it and be amazed by how much notation you don&#8217;t know and how very very many types of accidentals there are.  I really like the treble clef whose lower stroke ends in a down arrow. I don&#8217;t know how I missed it earlier. This is truly the best font ever. I also has letters and numbers and stuff.<br \/>\nI&#8217;ve got an <a href=\"canvas1.html\">example<\/a> of using Bravura in a canvas. You have to go elsewhere to see it, because it&#8217;s downloading the font via @font-face in css and I can&#8217;t do that from this blog.<br \/>\nIf you look at it, you should see an upside down treble clef. This is from the Bravura font. If you don&#8217;t see the treble clef, please leave a comment with what browser you&#8217;re using (ex: Internet Explorer), the version number (ex: 4.05), the sort of device (ex: Desktop, laptop, tablet, iphone, etc) and the operating system.<br \/>\nI got that glyph into the canvas by typing the unicode into the string in my text editor. The editor is using a different font, so this is kind of annoying because looking at the text source doesn&#8217;t show the result or even the unicode number.<br \/>\nThis is an example of an image in a canvas with some text:<\/p>\n<p>Your browser does not support the HTML5 canvas tag.<\/p>\n<div><a href=\"https:\/\/secure.flickr.com\/photos\/celesteh\/9736783860\/\">Big Red Blob<\/a> originally uploaded by <a href=\"http:\/\/www.flickr.com\/photos\/celesteh\/\">celesteh<\/a>.<\/div>\n<p>var c=document.getElementById(&#8220;canvas_images&#8221;);<br \/>\nvar context=c.getContext(&#8220;2d&#8221;);<br \/>\nvar numGlyphs = Math.floor((Math.random()*3)+1) + 1;<br \/>\nvar blob = new Image();<br \/>\nvar x, y;<\/p>\n<p>context.font = &#8220;150% Bravura&#8221;;<br \/>\nblob.src = &#8220;https:\/\/farm8.staticflickr.com\/7322\/9736783860_4c2706d4ef_m.jpg&#8221;<br \/>\nblob.onload = function() {<br \/>\n    context.drawImage(blob, 0, 0);<br \/>\n    for (var i = 0; i < numGlyphs; i++) {\n        x = Math.floor((Math.random()*i*50) + 1) +5;\n        y = Math.floor((Math.random()* 205) + 1) +7;\n        \/\/1f49b\n        context.fillText(\"\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found a really very handy PDF document showing every single available music glyph in the Bravura font, organised by type. Gaze upon it and be amazed by how much notation you don&#8217;t know and how very very many types of accidentals there are. I really like the treble clef whose lower stroke ends in &hellip; <a href=\"https:\/\/www.celesteh.com\/blog\/2013\/09\/14\/fridays-pos\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Friday&#8217;s Post<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[42,77,78],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-composing","tag-creative-pact","tag-javascript"],"_links":{"self":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":1,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":2277,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions\/2277"}],"wp:attachment":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}