1import{_ as U}from"./Dh2RHB1H.js";import{d as R,_ as q,u as I}from"./pAIW8bm9.js";import{_ as O}from"./DUKyiMGP.js";import{_ as Z}from"./B3dibFBG.js";import{_ as E,c as l,a as t,b as d,w as u,t as i,l as a,x as Y,k as H,h as k,v as P,F as c,r as f,i as D,n as A,g as m,e as G,u as j,f as W,m as M,q as x,o as n,d as g}from"./Cvj6YUp_.js";import{_ as J}from"./Dst0_v3m.js";import{_ as K}from"./Dz4WzXW-.js";import{_ as Q}from"./Bxkk0hmo.js";import{g as X}from"./FsIr5leV.js";import{u as ee}from"./B97GM_Sy.js";import{u as te,a as se}from"./DY-qDXGg.js";const oe=R({name:"Font",async setup(){let e,s;const r=j(),y=Array.isArray(r.params.slug)?r.params.slug[0]:r.params.slug,v=ee(),{data:_}=([e,s]=W(()=>I(`font-page-${y??"unknown"}`,async()=>{try{if(!y)throw M({statusCode:404,statusMessage:"Page not found"});const F=await v.getBySlug("font",y),o=v.queryBySlugs("font",F.bundledFonts??[]),V=v.query("font",{where:{tags:{$contains:"bestseller"}},limit:4}),B=v.query("review",{sortBy:["publishDate","desc"]}),[N,$,z]=await Promise.all([o,V,B]);return{font:F,bundledFonts:N,bestsellers:$,reviews:z}}catch{throw M({statusCode:404,statusMessage:"Page not found"})}})),e=await e,s(),e),w=_.value?.font??{},C=_.value?.bundledFonts??[],L=_.value?.bestsellers??[],S=_.value?.reviews??[],b=w.metaTitle??"Handwritten Font",p=w.metaDescription??"",h=w.images?.[0]?.image??"",T="https://typeheist.co"+X();return te({title:`${b} | TYPEHEIST Font Foundry`,link:[...h?[{rel:"preload",fetchpriority:"high",as:"image",href:h,type:"image/webp"}]:[],{rel:"canonical",href:T}]}),se({description:p,ogUrl:T,ogType:"website",ogTitle:b,ogDescription:p,ogImage:h}),{font:w,bundledFonts:C,bestsellers:L,reviews:S}},data(){return{flickityOptions:{wrapAround:!0,freeScroll:!0,initialIndex:0,autoPlay:!0,cellAlign:"left",imagesLoaded:!0,prevNextButtons:!0,arrowShape:"M8.04179e-06 43.8202L35.9033 7.99999L45.5696 16.0109L17.6065 43.8202L100 43.8202L100 56.2943L17.4914 56.2943L45.4545 83.9891L35.9033 92L6.95127e-06 56.2943L8.04179e-06 43.8202Z"},flickityOptionsMulti:{wrapAround:!0,freeScroll:!0,initialIndex:0,autoPlay:3e3,pauseAutoPlayOnHover:!0,contain:!0,cellAlign:"left",imagesLoaded:!0,adaptiveHeight:!1,pageDots:!1,prevNextButtons:!0,arrowShape:"M8.04179e-06 43.8202L35.9033 7.99999L45.5696 16.0109L17.6065 43.8202L100 43.8202L100 56.2943L17.4914 56.2943L45.4545 83.9891L35.9033 92L6.95127e-06 56.2943L8.04179e-06 43.8202Z"},selectedFont:"",fontSize:32,lineHeight:120,letterSpacing:0,testerPanelTheme:"light"}},computed:{styleNames(){const e=Array.isArray(this.font?.stylesList)?this.font.stylesList:[];return e.length?e:this.font?.styles?[this.font.styles]:["Regular"]},stylesSummary(){const e=this.styleNames.length;return`${e} ${e===1?"style":"styles"}`},lastUpdatedLabel(){const s=(Array.isArray(this.font?.changelog)?this.font.changelog:[]).find(r=>this.parseChangelogDate(r));return s?this.formatMonthYear(this.parseChangelogDate(s)):this.font?.publishDate?this.formatMonthYear(this.font.publishDate):""},primaryFontFamily(){return this.testerStyleOptions?.[0]?.value||this.fontFamilyBaseName||"PPMori SemiBold"},fontFamilyBaseName(){return this.font?.title?.replace(/['â]+/g,"")},testerStyleOptions(){const e=Array.isArray(this.font?.stylesList)?this.font.stylesList:[],s=this.fontFamilyBaseName??"Regular";return e.length?e.map(r=>({label:r,value:`${this.fontFamilyBaseName} ${r}`})):[{label:s,value:this.fontFamilyBaseName??s}]},testerPanelThemeClass(){return`tester-theme-${this.testerPanelTheme}`},testerPreviewStyles(){return{"font-family":this.selectedFont||this.font?.title||"PPMori Regular","font-size":`${this.fontSize}px`,"line-height":`${this.lineHeight}%`,"letter-spacing":`${this.letterSpacing}px`}}},mounted(){this.initializeTesterState(),this.setTesterThemeFromPage()},watch:{"font.slug"(){this.initializeTesterState(),this.setTesterThemeFromPage()}},methods:{next(){this.$refs.flickity.next()},previous(){this.$refs.flickity.previous()},selectText(e){const s=e.target;if(window.getSelection&&document.createRange){const r=document.createRange();r.selectNodeContents(s);const y=window.getSelection();y.removeAllRanges(),y.addRange(r)}else if(document.body.createTextRange){const r=document.body.createTextRange();r.moveToElementText(s),r.select()}},initializeTesterState(){const e=this.testerStyleOptions.map(s=>s.value);e.length&&(e.includes(this.selectedFont)||([this.selectedFont]=e))},parseChangelogDate(e){if(!e||typeof e!="string")return"";const s=e.match(/^(\d{1,2}\s+[A-Za-z]+\s+\d{4})/);return s?s[1]:""},formatMonthYear(e){if(!e)return"";const s=new Date(e);return Number.isNaN(s.getTime())?"":s.toLocaleDateString("en-US",{month:"long",year:"numeric"})},setTesterThemeFromPage(){typeof document>
1"u"||(this.testerPanelTheme=document.body.classList.contains("dark-theme")?"dark":"light")},pasteText(e){e.preventDefault();const s=e.clipboardData.getData("text/plain");this.font.testerText=s}}},"$eVPU3w2g9v"),ne={class:"product-detail font-detail"},le={class:"gallery hero"},ie={class:"image"},ae={class:"main"},re={key:0,class:"tag"},de={key:1,class:"tag discount"},ue={class:"col content"},ce={class:"intro"},fe={key:0},he={class:"banner"},pe={class:"rich-text"},me={class:"banner commercial flex"},ge={class:"copy"},ye={class:"h4"},we={class:"tester-body"},ve={class:"test-controls flex row"},_e={class:"control-pill select-styles"},be=["value"],ke={class:"control-pill select-styles tester-theme-select"},Ce={class:"control-pill range-control size-slider"},Le={class:"value"},Se={class:"control-pill range-control"},Te={class:"value"},Fe={class:"control-pill range-control"},Ve={class:"value"},De={key:3,class:"bundled-fonts"},He={class:"wrap"},Pe=["srcset"],Ae=["srcset"],Me=["src","alt"],Be={class:"flex column info"},Ne={class:"title"},$e={class:"price"},ze={key:4,class:"font-specs"},Ue={class:"font-specs-main"},Re={class:"spec-card styles-card"},qe={class:"value"},Ie={class:"font-specs-list"},Oe={class:"spec-grid"},Ze={key:0,class:"spec-card"},Ee={class:"value"},Ye={key:1,class:"spec-card"},Ge={class:"font-specs-list"},je={key:2,class:"spec-card"},We={class:"font-specs-list"},xe={key:3,class:"spec-card"},Je={class:"meta"},Ke={key:5,class:"font-specs-panel"},Qe={class:"info-table flex font-specs-accordion"},Xe={key:0,class:"array align-right"},et={class:"array align-right"},tt={class:"array"},st=["href"],ot={class:"array align-right"},nt={class:"array changelog"},lt={key:6,class:"more-about"},it={key:0,class:"font-title-section"},at={class:"more-about-content"},rt={class:"more-about-copy"},dt={key:0},ut={key:1},ct={class:"rich-text"},ft={class:"sub"},ht={class:"reviews col-narrow col-med"},pt={class:"col gallery multi"},mt={class:"bestselling-fonts col-narrow col-med"},gt={class:"section-head"},yt={class:"font-list card flex internal-loved-font-cards"};function wt(e,s,r,y,v,_){const w=U,C=x("flickity"),L=q,S=O,b=Z,p=G,h=J,T=K,F=Q;return n(),l("div",ne,[t("div",null,[t("section",le,[d(L,null,{default:u(()=>[d(C,{ref:"flickity",options:e.flickityOptions},{default:u(()=>[(n(!0),l(c,null,f(e.font.images,o=>(n(),l("div",{key:o.id,class:"carousel-cell"},[t("div",ie,[d(w,{url:o.image,description:o.description,size:"full-width"},null,8,["url","description"])])]))),128))]),_:1},8,["options"])]),_:1})]),t("section",ae,[e.font.featureTag?(n(),l("span",re,i(e.font.featureTag),1)):a("",!0),e.font.discountAmount?(n(),l("span",de,"Sale")):a("",!0),t("h1",null,i(e.font.title),1),t("div",ue,[d(S,{"item-data":e.font,"item-type":"font"},null,8,["item-data"]),t("div",ce,[e.font.onSale?(n(),l("div",fe,[t("div",he,[t("p",null,[t("strong",null,i(e.font.discountDescription),1)])])])):a("",!0),t("div",pe,[d(b,{value:e.font.intro},null,8,["value"])])])]),t("div",me,[s[8]||(s[8]=Y('<div class="header flex"><div class="tag">Built for teams, agencies & big audiences</div><div class="team"><svg width="104" height="40" viewBox="0 0 104 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="38" height="38" rx="19" fill="#233757"></rect><rect x="1" y="1" width="38" height="38" rx="19" stroke="white" stroke-width="2"></rect><path d="M13.7102 14.9901V12.4545H25.6562V14.9901H21.2031V27H18.1634V14.9901H13.7102Z" fill="white"></path><rect x="33" y="1" width="38" height="38" rx="19" fill="#FF7134"></rect><rect x="33" y="1" width="38" height="38" rx="19" stroke="white" stroke-width="2"></rect><path d="M46.2642 27V12.4545H52.0881C53.1581 12.4545 54.0507 12.6132 54.7656 12.9304C55.4806 13.2476 56.018 13.688 56.3778 14.2514C56.7377 14.8101 56.9176 15.4541 56.9176 16.1832C56.9176 16.7514 56.804 17.2509 56.5767 17.6818C56.3494 18.108 56.0369 18.4583 55.6392 18.733C55.2462 19.0028 54.7964 19.1946 54.2898 19.3082V19.4503C54.8438 19.474 55.3622 19.6302 55.8452 19.919C56.3329 20.2079 56.7282 20.6127 57.0312 21.1335C57.3343 21.6496 57.4858 22.2652 57.4858 22.9801C57.4858 23.7519 57.294 24.4408 56.9105 25.0469C56.5317 25.6482 55.9706 26.1241 55.2273 26.4744C54.4839 26.8248 53.5677 27 52.4787 27H46.2642ZM49.3395 24.4858H51.8466C52.7036 24.4858 53.3286 24.3224 53.7216 23.9957C54.1146 23.6643 54.3111 23.224 54.3111 22.6747C54.3111 22.2723 54.214 21.9171 54.0199 21.6094C53.8258 21.3016 53.5488 21.0601 53.1889 20.8849C52.8338 20.7098 52.41 20.6222 51.9176 20.6222H49.3395V24.4858ZM49.3395 18.5412H51.6193C52.0407 18.5412 52.4148 18.4678 52.7415 18.321C53.0729 18.1695 53.3333 17.9564 53.5227 17.6818C53.7169 17.4072 53.8139 17.0781 53.8139 16.6946C53.8139 16.169 53.6269 15.7453 53.2528 15.4233C52.8835 15.1013 52.358 14.9403 51.6761 14.9403H49.3395V18.5412Z" fill="white"></path><rect x="65" y="1" width="38" height="38" rx="19" fill="#D92BAB"></rect><rect x="65" y="1" width="38" height="38" rx="19" stroke="white" stroke-width="2"></rect><path d="M78.7642 27V12.4545H88.5653V14.9901H81.8395V18.456H88.0611V20.9915H81.8395V24.4645H88.5938V27H78.7642Z" fill="white"></path></svg></div></div>',1)),t("div",ge,[t("h3",ye,"Using "+i(e.font.title)+" Commercially?",1),t("p",null," If youâre using "+i(e.font.title)+" for client work, large audiences or commercial projects, make sure youâre covered with the right licence. ",1),d(p,{to:"/commercial-licenses/",title:"Commercial licensing info",alt:"Commercial licensing info",class:"btn sm secondary"},{default:u(()=>[...s[7]||(s[7]=[g(" Explore Commercial licensing â",-1)])]),_:1})])]),e.font.testerText?(n(),l("div",{key:2,class:H(["try-font",e.testerPanelThemeClass])},[s[13]||(s[13]=t("div",{class:"tester-header"},[t("h2",{class:"med"},"Type tester")],-1)),t("div",we,[t("div",ve,[t("div",_e,[k(t("select",{"onUpdate:modelValue":s[0]||(s[0]=o=>e.selectedFont=o)},[(n(!0),l(c,null,f(e.testerStyleOptions,o=>(n(),l("option",{key:o.value,value:o.value},i(o.label),9,be))),128))],512),[[P,e.selectedFont]])]),t("div",ke,[k(t("select",{"onUpdate:modelValue":s[1]||(s[1]=o=>e.testerPanelTheme=o)},[...s[9]||(s[9]=[t("option",{value:"light"},"Light",-1),t("option",{value:"dark"},"Dark",-1)])],512),[[P,e.testerPanelTheme]])]),t("div",Ce,[s[10]||(s[10]=t("label",{for:"type-tester-size"},"Size",-1)),k(t("input",{id:"type-tester-size","onUpdate:modelValue":s[2]||(s[2]=o=>e.fontSize=o),type:"range",min:"16",max:"120"},null,512),[[D,e.fontSize,void 0,{number:!0}]]),t("span",Le,i(e.fontSize),1)]),t("div",Se,[s[11]||(s[11]=t("label",{for:"type-tester-line-height"},"Line height",-1)),k(t("input",{id:"type-tester-line-height","onUpdate:modelValue":s[3]||(s[3]=o=>
1e.lineHeight=o),type:"range",min:"80",max:"200"},null,512),[[D,e.lineHeight,void 0,{number:!0}]]),t("span",Te,i(e.lineHeight)+"%",1)]),t("div",Fe,[s[12]||(s[12]=t("label",{for:"type-tester-letter-spacing"},"Letter spacing",-1)),k(t("input",{id:"type-tester-letter-spacing","onUpdate:modelValue":s[4]||(s[4]=o=>e.letterSpacing=o),type:"range",min:"-10",max:"40"},null,512),[[D,e.letterSpacing,void 0,{number:!0}]]),t("span",Ve,i(e.letterSpacing),1)])]),t("div",{class:H(e.font.slug+" testpad"),contenteditable:"true",style:A(e.testerPreviewStyles),onFocus:s[5]||(s[5]=o=>e.selectText(o)),onPaste:s[6]||(s[6]=o=>e.pasteText(o))},i(e.font.testerText),39)])],2)):a("",!0),e.font.bundledFonts?(n(),l("div",De,[s[14]||(s[14]=t("h3",null,"What's in this bundle?",-1)),t("div",He,[(n(!0),l(c,null,f(e.bundledFonts,o=>(n(),m(p,{key:o.id,class:"item flex row",to:"/font/"+o.slug+"/"},{default:u(()=>[t("picture",null,[t("source",{srcset:o.images[0].image+"?q=85&w=200&fm=webp 200w,"+o.images[0].image+"?q=85&w=800&fm=webp 800w,"+o.images[0].image+"?q=85&w=1200&fm=webp 1200w",type:"image/webp",sizes:"(max-width: 980px) 50vw, (max-width: 1280px) 50vw, 50vw"},null,8,Pe),t("source",{srcset:o.images[0].image+"?q=85&w=200&fm=png 200w,"+o.images[0].image+"?q=85&w=800&fm=png 800w,"+o.images[0].image+"?q=85&w=1200&fm=png 1200w",type:"image/png",sizes:"(max-width: 980px) 50vw, (max-width: 1280px) 50vw, 50vw"},null,8,Ae),t("img",{src:o.images[0].image,alt:o.title,width:"400",height:"300"},null,8,Me)]),t("div",Be,[t("span",Ne,i(o.title)+" â",1),t("span",$e,"$"+i(o.price),1)])]),_:2},1032,["to"]))),128))])])):a("",!0),e.font.layout==="default"?(n(),l("div",ze,[t("div",Ue,[t("article",Re,[s[15]||(s[15]=t("h3",{class:"label"},"Styles",-1)),t("p",qe,i(e.stylesSummary),1),t("ul",Ie,[(n(!0),l(c,null,f(e.styleNames,o=>(n(),l("li",{key:o},i(o),1))),128))])]),t("div",Oe,[e.font.numberOfGlyphs?(n(),l("article",Ze,[s[16]||(s[16]=t("h3",{class:"label"},"Number of Glyphs",-1)),t("p",Ee,i(e.font.numberOfGlyphs),1)])):a("",!0),e.font.letterCaseList?.length?(n(),l("article",Ye,[s[17]||(s[17]=t("h3",{class:"label"},"Letter Case",-1)),t("ul",Ge,[(n(!0),l(c,null,f(e.font.letterCaseList,o=>(n(),l("li",{key:o},i(o),1))),128))])])):a("",!0),e.font.categories?.length?(n(),l("article",je,[s[18]||(s[18]=t("h3",{class:"label"},"Category",-1)),t("ul",We,[(n(!0),l(c,null,f(e.font.categories,o=>(n(),l("li",{key:o},i(o),1))),128))])])):a("",!0),e.lastUpdatedLabel?(n(),l("article",xe,[s[19]||(s[19]=t("h3",{class:"label"},"Last updated",-1)),t("p",Je,i(e.lastUpdatedLabel),1)])):a("",!0)])])])):a("",!0),e.font.layout==="default"&&(e.font.languageSupport||e.font.bundle||e.font.linkDemo||e.font.changelog?.length||e.font.title)?(n(),l("div",Ke,[t("div",Qe,[e.font.title?(n(),m(h,{key:0,title:"Typeface Name","show-more":e.font.title,"is-expandable":!1},null,8,["show-more"])):a("",!0),e.font.languageSupport?(n(),m(h,{key:1,title:"Language Support","show-more":e.font.languageSupport,"is-expandable":!!e.font.languageList?.length},{default:u(()=>[e.font.languageList?.length?(n(),l("span",Xe,[(n(!0),l(c,null,f(e.font.languageList,(o,V)=>(n(),l("span",{key:o},[g(i(o),1),V<e.font.languageList.length-1?(n(),l(c,{key:0},[g(", ")],64)):a("",!0)]))),128))])):a("",!0)]),_:1},8,["show-more","is-expandable"])):a("",!0),e.font.bundle&&e.font.bundledFonts?.length?(n(),m(h,{key:2,title:"In this bundle","show-more":"See what's inside"},{default:u(()=>[t("span",et,[(n(!0),l(c,null,f(e.font.bundledFonts,o=>(n(),l("div",{key:o.id},[d(p,{to:"/font/"+o.slug+"/",title:"View "+o.title,alt:"View "+o.title,class:"underline"},{default:u(()=>[g(i(o.title),1)]),_:2},1032,["to","title","alt"])]))),128))])]),_:1})):a("",!0),e.font.linkDemo?(n(),m(h,{key:3,title:"Free Demo","show-more":"View"},{default:u(()=>[t("span",tt,[s[20]||(s[20]=g(" This demo includes a limited character set for ",-1)),s[21]||(s[21]=t("strong",null,"personal projects only",-1)),s[22]||(s[22]=g(". If you would like to use the font for any other use, please purchase the full font license. ",-1)),t("a",{href:e.font.linkDemo,title:"Download Free Demo",target:"_blank",rel:"noreferrer",class:"underline"}," Download Demo ",8,st)])]),_:1})):a("",!0),d(h,{title:"License info","show-more":"View"},{default:u(()=>[t("span",ot,[d(p,{to:"/licensing/",title:"View Font Licensing Info",alt:"View Font Licensing Info",class:"underline",target:"_blank"},{default:u(()=>[...s[23]||(s[23]=[g(" View licensing information ",-1)])]),_:1})])]),_:1}),e.font.changelog?.length?(n(),m(h,{key:4,title:"Changelog","show-more":"See updates"},{default:u(()=>[t("span",nt,[(n(!0),l(c,null,f(e.font.changelog,o=>(n(),l("span",{key:o},i(o),1))),128))])]),_:1})):a("",!0)])])):a("",!0),e.font.moreAbout?(n(),l("div",lt,[e.font.layout!=="bundle"?(n(),l("section",it,[t("h2",{class:"font-title-heading",style:A({"font-family":e.primaryFontFamily})},i(e.font.title),5)])):a("",!0),t("div",at,[t("div",rt,[e.font.layout==="bundle"?(n(),l("h3",dt,"Your go to collection")):(n(),l("h3",ut,"More about "+i(e.font.title),
11)),t("div",ct,[d(b,{value:e.font.moreAbout},null,8,["value"])])]),d(S,{"item-data":e.font,"item-type":"font"},null,8,["item-data"])])])):a("",!0)]),t("section",ft,[t("div",ht,[s[24]||(s[24]=t("div",{class:"col description"},[t("svg",{width:"32",height:"26",viewBox:"0 0 32 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M13.1959 25.3374H0V15.5446C0 5.61047 4.94845 1.42026 13.6672 0.337402L14.5155 4.62177C9.09573 5.56339 6.97496 7.82328 6.97496 13.7555H13.1959V25.3374ZM30.6804 25.3374H17.4845V15.5446C17.4845 5.61047 22.433 1.42026 31.1517 0.337402L32 4.62177C26.6274 5.56339 24.4595 7.82328 24.4595 13.7555H30.6804V25.3374Z",fill:"black"})]),t("h2",null,"What people are saying"),t("p",null,"Here are some lovely things that lovely people have said about Typeheist's handwritten fonts.")],-1)),t("div",pt,[d(L,null,{default:u(()=>[d(C,{ref:"flickity",options:e.flickityOptionsMulti},{default:u(()=>[(n(!0),l(c,null,f(e.reviews,o=>(n(),m(T,{key:o.id,"review-data":o},null,8,["review-data"]))),128))]),_:1},8,["options"])]),_:1})])]),t("section",mt,[t("div",gt,[s[26]||(s[26]=t("h2",null,"Most loved fonts",-1)),d(p,{to:"/fonts/",title:"Shop all fonts",class:"btn secondary"},{default:u(()=>[...s[25]||(s[25]=[g("Shop all fonts â",-1)])]),_:1})]),t("div",yt,[(n(!0),l(c,null,f(e.bestsellers,o=>
1(n(),m(F,{key:o.id,"font-data":o},null,8,["font-data"]))),128))])])])])])}const Ht=E(oe,[["render",wt]]);export{Ht as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.