Ver Mensaje Individual
  #16 (permalink)  
Antiguo 13/02/2014, 14:09
jrtorvisco
 
Fecha de Ingreso: noviembre-2013
Mensajes: 23
Antigüedad: 10 años, 6 meses
Puntos: 0
Mira Zeromm seguí tu consejo, y dentro del kit de FontSquirrel miré como se aplica, lo tenéis aquí:

Código HTML:
Ver original
  1. <p>You must upload your webfont kit to your website. They should be in or near the same directory as your CSS files.</p>
  2.                    
  3.                     <h2>2. Include the webfont stylesheet</h2>
  4.                     <p>A special CSS @font-face declaration helps the various browsers select the appropriate font it needs without causing you a bunch of headaches. Learn more about this syntax by reading the <a href="http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax">Fontspring blog post</a> about it. The code for it is as follows:</p>
  5.  
  6.  
  7. @font-face{
  8.     font-family: 'MyWebFont';
  9.     src: url('WebFont.eot');
  10.     src: url('WebFont.eot?#iefix') format('embedded-opentype'),
  11.          url('WebFont.woff') format('woff'),
  12.          url('WebFont.ttf') format('truetype'),
  13.          url('WebFont.svg#webfont') format('svg');
  14. }
  15. </code>
  16.  
  17.     <p>We've already gone ahead and generated the code for you. All you have to do is link to the stylesheet in your HTML, like this:</p>
  18.     <code>&lt;link rel=&quot;stylesheet&quot; href=&quot;stylesheet.css&quot; type=&quot;text/css&quot; charset=&quot;utf-8&quot; /&gt;</code>
  19.  
  20.                     <h2>3. Modify your own stylesheet</h2>
  21.                     <p>To take advantage of your new fonts, you must tell your stylesheet to use them. Look at the original @font-face declaration above and find the property called "font-family." The name linked there will be what you use to reference the font. Prepend that webfont name to the font stack in the "font-family" property, inside the selector you want to change. For example:</p>
  22. <code>p { font-family: 'WebFont', Arial, sans-serif; }</code>


Primero lo cambié en mi CSS e incluso lo he renombrado a "stylesheet.css", es este con los cambios, en lugar de todos los estilos sólo he probado un h1:

Código CSS:
Ver original
  1. @font-face {
  2.     font-family: 'helvetica35thin-webfont';
  3.     src: url('helvetica35thin-webfont.eot');
  4.     src: url('helvetica35thin-webfont.eot?#iefix') format('embedded-opentype'),
  5.          url('helvetica35thin-webfont.woff') format('woff'),
  6.          url('helvetica35thin-webfont.ttf') format('truetype'),
  7.          url('helvetica35thin-webfont.svg#helvetica35-thinthin') format('svg');
  8.     font-weight: normal;
  9.     font-style: normal;
  10.  
  11. }
  12.  
  13. h1 {
  14. font-family:'helvetica35thin-webfont';
  15. }

En el XML, "flashmo_259_photo_list, apliqué los cambios y sólo puse un h1 en la primera etiqueta para el texto (HELVETICA ROUNDED) de la primera fotografía, aquí lo dejo:

Código XML:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <photos>
  3.  
  4.     <config
  5.         folder="photos/"
  6.         show_tooltip="true"
  7.         auto_play="true"
  8.         auto_play_button="true"
  9.         auto_play_duration="5"
  10.        
  11.         thumbnail_area_width="710"
  12.         thumbnail_height="100"
  13.         thumbnail_spacing="10"
  14.         thumbnail_border_size="5"
  15.         thumbnail_border_color="#EEEEEE"
  16.         thumbnail_highlight_color="#333333"
  17.  
  18.         previous_button="true"
  19.         next_button="true"
  20.         fullscreen_button="true"
  21.         scale_options_button="true"
  22.         image_scale_option="2"
  23.        
  24.         description="true"
  25.         description_bg_color="#000000"
  26.         description_bg_alpha="0.6"
  27.         [COLOR="Red"]css_file="stylesheet.css"[/COLOR]
  28.         tween_duration="0.5"
  29.         tween_effect="linear">
  30.     </config>
  31.    
  32.     <photo>
  33.         <thumbnail>s_Editorial_Black_Rose_Brand_01.jpg</thumbnail>
  34.         <filename>Editorial_Black_Rose_Brand_01.jpg</filename>
  35.         <tooltip>Image Title 01</tooltip>
  36.         <description><![CDATA[[COLOR="red"]<h1>HELVETICA ROUNDED</h1>[/COLOR]<p><a href="http://www.flashmo.com/page/1" target="_parent">Lorem ipsum dolor sit amet</a>, consectetur adipiscing elit. <span class="highlight">Quisque at ante sit amet</span> erat laoreet <u>fermentum</u>. Nam scelerisque cursus dolor. Duis nulla diam, posuere ac, varius id, ullamcorper sit amet, libero. <span class="note">This text is dynamically loaded from the external XML file. This textfield supports HTML and CSS.</span></p>]]></description>
  37.     </photo>

En el index.html situé el link que venía en el Kit de FOntSquirrel:

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3.     <head>
  4.         <title>jorch</title>
  5.        [COLOR="red"] <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />[/COLOR]
  6.         <style type="text/css">
  7.         <!--
  8.        html, body {
  9.            margin: 0;
  10.            padding: 0;
  11.             height: 100%;
  12.             overflow: hidden;
  13.            color: #FFF;
  14.            background-color: #000;
  15.            font-family:'helvetica35thin-webfont';
  16.            font-size: 13px;
  17.        }
  18.        a:link, a:visited { color: #FF6; }
  19.        a:hover { color: #F6F; }
  20.        -->
  21.         </style>
  22.         <!-- embedding SWF -->
  23.         <script type="text/javascript" src="swfobject.js"></script>
  24.         <script type="text/javascript" src="swffit.js"></script>
  25.         <script type="text/javascript">
  26.             var flashvars = {};
  27.             flashvars.xml_file = "flashmo_259_photo_list.xml";
  28.             var params = {};
  29.             params.allowfullscreen = true;
  30.             var attributes = {};
  31.             attributes.id = "flashmo_template";
  32.             attributes.name = "flashmo_template";
  33.             swfobject.embedSWF("flashmo_259_fluid_gallery.swf", "flashmo_template", "100%", "100%", "9.0.0", false, flashvars, params, attributes);
  34.             swffit.fit("flashmo_template", 800, 480);
  35.         </script>
  36.         <!-- embedding SWF -->
  37.     </head>
  38.     <body>
  39.         <!-- flash gallery SWF -->
  40.             <div id="flashmo_template">
  41.                 <br /><br />
  42.                 <a href="http://www.flashmo.com" target="_blank">Free Flash Gallery</a>
  43.                 <br /><br />
  44.                 <a href="http://www.adobe.com/go/getflashplayer" target="_blank">
  45.                     <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
  46.                 </a>
  47.             </div>
  48.         <!-- flash gallery SWF -->
  49.     </body>
  50. </html>


No funciona nada, pero es más, fui a Google Font y probé con una tipografía elegida, ya sabéis que sólo debo pegar un link en el head y cambiar el Font-Family, pues ni eso funciona. Un desastre, y se que en cualquier CSS creo que puede funcionar, yo no se si el problema está en el archivo .fla. Os dejo el link de mi dominio, allí está subida la prueba de la que os hablo. Siento volver a insistir, pero es que creo que vosotros sois los únicos que podéis ayudarme a solucionar esto:

www.historiasdejorch.com

Gracias de nuevo y estoy atento a cualquier comentario.

Un saludo
Jorge

[URL="http://www.historiasdejorch.com"]http://www.historiasdejorch.com[/URL]

Os dejo un link donde está la prueba simple que funciona, la acabo de hacer, por favor descargarla y veis los archivos: index.html/ carpeta fonts (las fuentes del kit de FontSquirrel) / fonts.css. Luego si que va, pero en la plantilla de mi web no logro realizarla.

https://dl.dropboxusercontent.com/u/...ueba%20CSS.rar

Saludos

Última edición por pzin; 14/02/2014 a las 02:33 Razón: combinar mensajes