Lines Matching defs:wh

561 function draw_repbra(p_voice){var s,s1,x,y,y2,i,p,w,wh,first_repeat;y=staff_tb[p_voice.st].topbar+25
578 if(s1.text){wh=strwh(s1.text);y2=y_get(p_voice.st,true,s1.x+4,wh[0])+
579 wh[1]
3624 s0=s;w0=ch.text.wh[0];n=0;x=0
3628 switch(gch.type){case'<':w=gch.text.wh[0]+wlnote
3632 case'>':w=gch.text.wh[0]+s.wr
6789 return function(str){if(str.wh)
6790 return str.wh
6795 str.wh=[el.clientWidth,el.clientHeight]
6796 return str.wh}
6829 var o,n_font,wh,o_font=gene.curfont,c_font=o_font
6864 o.wh=strwh(str)
6871 function xy_str(x,y,str,action,w,wh){if(!wh)
6872 wh=str.wh||strwh(str)
6875 output+='" lengthAdjust="'+gene.curfont.wadj+'" textLength="'+wh[0].toFixed(1);output+='" x="';out_sxsy(x,'" y="',y+wh[1]*.2)
6876 switch(action){case'c':x-=wh[0]/2;output+='" text-anchor="middle">'
6880 case'r':x-=wh[0];output+='" text-anchor="end">'
6900 function write_title(title,is_subtitle){var h,wh
6905 wh=strwh(title)
6906 wh[1]+=gene.curfont.pad*2
6907 vskip(wh[1]+h+gene.curfont.pad)
6910 xy_str(0,h,title,null,null,wh)
6912 xy_str(get_lwidth()/2,h,title,"c",null,wh)}
6922 set_page();var wh,font,o,strlw=get_lwidth(),sz=gene.curfont.size,lineskip=sz*cfmt.lineskipfac,parskip=sz*cfmt.parskipfac,i,j,x,words,w,k,ww,str;switch(action){default:font=gene.curfont
6929 vskip(str.wh[1]*cfmt.lineskipfac+font.pad*2)
6937 vskip(str.wh[1]*cfmt.lineskipfac+font.pad*2)
6951 vskip(str.wh[1]*cfmt.lineskipfac)
6956 vskip(str.wh[1]*cfmt.lineskipfac)
7016 function put_history(){var i,j,c,str,font,h,w,wh,head,names=cfmt.infoname.split("\n"),n=names.length
7026 head=head.slice(1,-1);vskip(h);wh=strwh(head);xy_str(0,0,head,null,null,wh);w=wh[0];str=str.split('\n');xy_str(w,0,str[0])
7483 function tempo_build(s){var i,j,bx,p,wh,dy,w=0,str=[]
8546 ly={t:word,font:gene.curfont,wh:strwh(word),istart:j,iend:j+word.length}
8558 w=ly.wh[0];swfac=ly.font.swfac;xx=w+2*cwid(' ')*swfac
8607 gene.curfont=font=ly.font;p=ly.t;w=ly.wh[0];shift=ly.shift
8620 xy_str(x0,y,p,null,null,ly.wh);anno_stop(s2,'lyrics')
8658 if(ly){x-=ly.shift;w=ly.wh[0]
8795 Abc.prototype.gch_build=function(s){var gch,wh,xspc,ix,y_above=0,y_below=0,y_left=0,y_right=0,GCHPRE=.4;for(ix=0;ix<s.a_gch.length;ix++){gch=s.a_gch[ix]
8803 gch.text.wh=[0,0]
8806 wh=gch.text.wh
8807 wh[1]+=gch.font.pad*2
8809 case'^':xspc=wh[0]*GCHPRE
8812 case'_':xspc=wh[0]*GCHPRE
8815 case'<':gch.x=-(wh[0]+6);y_left-=wh[1];gch.y=y_left+wh[1]/2
8817 case'>':gch.x=6;y_right-=wh[1];gch.y=y_right+wh[1]/2
8819 default:xspc=wh[0]*GCHPRE
8828 Abc.prototype.draw_gchord=function(i,s,x,y){var y2,an=s.a_gch[i],h=an.font.size,pad=an.font.pad,w=an.text.wh[0]+pad*2
8880 w=an.text.wh[0]
8896 w=an.text.wh[0]
8914 w=an.text.wh[0]