Ahhh, esqueci de dizer que vcs podem tb embedar as duas juntas: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Style> @font-face { src: local("Arial"); fontFamily: minhaFonteEmbedada; font-weight: normal; } @font-face { src: local("Arial"); fontFamily: minhaFonteEmbedada; font-weight: bold; } Button { font-family: minhaFonteEmbedada; } .myButtonStyleNormal { font-weight: normal; } .myButtonStyleBold { font-weight: bold; } </mx:Style> <mx:Button label="normal" rotation="90" styleName="myButtonStyleNormal"/> <mx:Button label="bold" rotation="90" styleName="myButtonStyleBold"/> </mx:Application>
[]s, Henrique F. Marino http://blog.dclick.com.br On 2/11/09, Henrique <[email protected]> wrote: > Na verdade não é bem necessário, o que é necessário é que a fonte > "embedada" esteja com o estilo fontWeight igual. O Button, por default > usa bold. > > Uma combinação seria: > > @font-face { > src:local("Arial"); > fontFamily: myPlainFont; > font-weight: normal; > } > > Button > { > fontWeight: normal; > } > > E a outra seria: > > @font-face { > src:local("Arial"); > fontFamily: myPlainFont; > font-weight: bold; > } > > Button > { > fontWeight: bold; > } > > []s, > > Henrique F. Marino > http://blog.dclick.com.br > > On 2/11/09, Mário Júnior <[email protected]> wrote: >> Interessante... dessa de ser negrito eu tb não sabia. >> Eu já sabia que, para ser rotacionado e/ou usar fontes próprias, era >> necessário embutí-las (embed) >> >> >> >> 2009/2/11 Rodrigo Pandini <[email protected]> >> >>> Ow, alguém sabe explicar porque que mudar o estilo da fonte pra negrito >>> faz >>> com que ele consiga ser rotacionado? >>> >>> >>> 2009/2/11 Renato Gonçalves <[email protected]> >>> >>>> Valeu cara! Funcionou 100% >>>> >>>> Obrigado! >>>> >>>> 2009/2/11 Henrique <[email protected]> >>>> >>>> Fala Renato, >>>>> Você precisa utilizar fontes bold. Teste o exemplo abaixo: >>>>> >>>>> <?xml version="1.0" encoding="utf-8"?> >>>>> >>>>> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout=" >>>>> vertical"> >>>>> >>>>> <mx:Style> >>>>> >>>>> @font-face { >>>>> >>>>> src: local("Verdana"); >>>>> >>>>> fontFamily: myFontFamily; >>>>> >>>>> fontWeight: bold; >>>>> >>>>> advancedAntiAliasing: true; >>>>> >>>>> } >>>>> >>>>> </mx:Style> >>>>> >>>>> <mx:Button label="teste" rotation="90" width="100" height="100" >>>>> fontFamily="myFontFamily" /> >>>>> >>>>> </mx:Application> >>>>> >>>>> >>>>> >>>>> >>>>> []s, >>>>> >>>>> Henrique F. Marino >>>>> blog.dclick.com.br >>>>> >>>>> 2009/2/11 Renato Gonçalves <[email protected]> >>>>> >>>>> Pessoal, estou tentando colocar um botão na vertical, no entanto >>>>> quando >>>>>> altero o atributo rotation do botão o label desaparece. >>>>>> Gostaria de saber se tem como deixar o label do botão quando o ângulo >>>>>> do >>>>>> mesmo é alterado. >>>>>> >>>>>> PS.: Sim, estou usando um fonte embed. >>>>>> >>>>>> Muito Obrigado >>>>>> Renato >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> > >>> >> >> >> -- >> Mário de Souza Júnior >> Programador Java / Adobe Flex >> http://blog.mariojunior.com >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [email protected] Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---
