css - large Iconfont icon cut off on the right side -


i'm using large icon icon font client delivered header logo on index page of web app. logo large 60% of device width , consists of large round logo (about 40% of icon) text below , wide 60% of device in portrait mode.

i got logo text 1 vector icon font icon because customer want's text brands ci demands.

_____###_____ ____#####____ _____###_____ slogan here 

it looks alright on desktop preview , google nexus 4 dolphin browser in chrome (on nexus) slogan cut off "slogan h". if switch landscape, it's displayed correctly again.

.header-box-logo {   color: #fff;   font-size: 6.4rem;   margin: 1rem auto;   display: inline-block; }  [class^="icon-"], [class*=" icon-"] {   font-family: 'iconfontnamehere';   speak: none;   font-style: normal;   font-weight: normal;   font-variant: normal;   text-transform: none;   line-height: 1;   -webkit-font-smoothing: antialiased;   -moz-osx-font-smoothing: grayscale; } 

i'm using custom version of foundation 5 , iconmoon. can't show demo images bound nda.

i'm @ loss here, idea why happens?

in case solved problem prioritizing svg format fonts. unfortunate, since has largest footprint (enabling http compression helps though)

as make sure not use # symbol in font url:

@font-face {     font-family: 'myiconfont';      src:url('fonts/myiconfont.eot?-7pdf04');     src:url('fonts/myiconfont.eot?#iefix-7pdf04') format('embedded-opentype'),         url('fonts/myiconfont.woff?-7pdf04') format('woff'),         url('fonts/myiconfont.ttf?-7pdf04') format('truetype'),         url('fonts/myiconfont.svg?-7pdf04') format('svg');     font-weight: normal;     font-style: normal; }  @media screen , (-webkit-min-device-pixel-ratio:0) {     @font-face {         font-family: 'myiconfont';         src: url('fonts/myiconfont.svg?-7pdf04') format('svg');     } } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -