Homepage - Fonts ..
Moderator: Gooseman
- lj-ab
- Beiträge: 293
- Registriert: Di 23 Jul, 2002 12:00 pm
- Wohnort: Wiesent bei RGBG und Aßling bei EBE
- Kontaktdaten:
Homepage - Fonts ..
Hi,
kann mir einer von euch helfen ... Ich hab auf meiner HP viele verschiedene Schriftarten, sind aber keine standart windows schriftarten. Bei mir aufm rechner werden die immer angezeigt, auch wenn ich über MEINEN rechner online drauf gehen, aber von jedem anderen PC aus, werden ganz stink normale Schriftarten angezeigt.
Kann mir zur lösung meines probls. irgendjemand nen HTML-Code oder so geben?
Danke schon im voraus...
MFG
kann mir einer von euch helfen ... Ich hab auf meiner HP viele verschiedene Schriftarten, sind aber keine standart windows schriftarten. Bei mir aufm rechner werden die immer angezeigt, auch wenn ich über MEINEN rechner online drauf gehen, aber von jedem anderen PC aus, werden ganz stink normale Schriftarten angezeigt.
Kann mir zur lösung meines probls. irgendjemand nen HTML-Code oder so geben?
Danke schon im voraus...
MFG
-
- Beiträge: 2321
- Registriert: Di 25 Dez, 2001 12:00 pm
- Do you already have Laser-Equipment?: Selfmade 850mW RGB
- Wohnort: Düsseldorf / Germany
- Kontaktdaten:
Re: Homepage - Fonts ..
Hi !
für den Text in Buttens oder auf Navigationsleisten, etc. inst das kein Thema - Machst Du einfach nen Bitmap draus. Ganze Texte allerdings.... keine Ahnung, was man da so macht !?
Hey - und God is e DeeJay <img src="/images/graemlins/wink.gif" alt="" />
für den Text in Buttens oder auf Navigationsleisten, etc. inst das kein Thema - Machst Du einfach nen Bitmap draus. Ganze Texte allerdings.... keine Ahnung, was man da so macht !?
Hey - und God is e DeeJay <img src="/images/graemlins/wink.gif" alt="" />
- lj-ab
- Beiträge: 293
- Registriert: Di 23 Jul, 2002 12:00 pm
- Wohnort: Wiesent bei RGBG und Aßling bei EBE
- Kontaktdaten:
Re: Homepage - Fonts ..
eben keine buttons ... auf die idee mit den jpg usw. bin ich schon gekommen, aber es sind eben ganze Texte, und da hab ich auch null plan wie das gehen soll ...
- funkydoctor
- Beiträge: 1556
- Registriert: Fr 01 Dez, 2000 12:00 pm
- Do you already have Laser-Equipment?: Pangolin Pro and lots of lasers...about 700W optical output in total :-) ...and it's getting more every day...
- Wohnort: Lindlar / Köln
- Kontaktdaten:
Re: Homepage - Fonts ..
Tach auch.
Kurze Antwort: Als Text geht es nicht.
Der User, der sich die Seite anschaut müsste dafür Deine Schrift lokal bei sich installiert haben. Ist leider so...
Einzige vernünftige Lösung wäre ein (evtl. transparentes) .gif, welches für ein Bild mit Schrift vermutlich die kleinste Dateigrösse hätte.
Andere Möglichkeit wäre Flash. Wenn Du einen Flash-Film/Bild mit Text machst, liegt die Schrift in der .swf-Datei.
Grüße,
Tobi
Kurze Antwort: Als Text geht es nicht.
Der User, der sich die Seite anschaut müsste dafür Deine Schrift lokal bei sich installiert haben. Ist leider so...
Einzige vernünftige Lösung wäre ein (evtl. transparentes) .gif, welches für ein Bild mit Schrift vermutlich die kleinste Dateigrösse hätte.
Andere Möglichkeit wäre Flash. Wenn Du einen Flash-Film/Bild mit Text machst, liegt die Schrift in der .swf-Datei.
Grüße,
Tobi
Have a nice ray!
Re: Homepage - Fonts ..
Hi!
Das geht AFAIK nur, indem die Textdatei (also die .ttf aus dem fonts Ordner) auch auf dem anzeigenden Computer installiert ist, also z.B. vorher runtergeladen und installiert werden muss, das kann man natürlich nicht automatisch machen lassen.
Man könnte natürlich das ganze in eine Bilddatei schreiben, aber das nur im Notfall wenns wirklich unbedingt die Schriftart sein soll. (Dann wirds nämlich logischerweise auch schwierig mit dem Suchmaschineneintrag.)
Vielleicht geht es ja mit Flash, hab auch nicht so die Ahnung von WebDesign.
Gruß
Kristof
Das geht AFAIK nur, indem die Textdatei (also die .ttf aus dem fonts Ordner) auch auf dem anzeigenden Computer installiert ist, also z.B. vorher runtergeladen und installiert werden muss, das kann man natürlich nicht automatisch machen lassen.
Man könnte natürlich das ganze in eine Bilddatei schreiben, aber das nur im Notfall wenns wirklich unbedingt die Schriftart sein soll. (Dann wirds nämlich logischerweise auch schwierig mit dem Suchmaschineneintrag.)
Vielleicht geht es ja mit Flash, hab auch nicht so die Ahnung von WebDesign.
Gruß
Kristof
Re: Homepage - Fonts ..
Wie gesagt du kannst den Browser auch anweisen, dass er sich die passende Schriftart holt und auf dem lokalen Computer installiert. Hier könntest Du aber Urheberrechteliche Probleme bekommen. ( ja das geht auch bei Schriftarten). Ansonsten ist eigentlich immer die Verwendung von Browsersicheren Schriftarten zu empfehlen, wie z.B. Verdana. Da gibt es dann keine Probleme.
Am besten besorgst Du Dir ein gutes Webdesign Buch. Da werden dann meistens auch solche Probleme ausführlich behandelt.
Am besten besorgst Du Dir ein gutes Webdesign Buch. Da werden dann meistens auch solche Probleme ausführlich behandelt.
- funkydoctor
- Beiträge: 1556
- Registriert: Fr 01 Dez, 2000 12:00 pm
- Do you already have Laser-Equipment?: Pangolin Pro and lots of lasers...about 700W optical output in total :-) ...and it's getting more every day...
- Wohnort: Lindlar / Köln
- Kontaktdaten:
Re: Homepage - Fonts ..
selfhtml ist eigentlich nur eine html referenz
- floh
- Beiträge: 2406
- Registriert: Mo 04 Feb, 2002 12:00 pm
- Do you already have Laser-Equipment?: Lexel 88, Compass 315, diverse HeNe und eine Menge Kleinkram.
- Wohnort: Ostschweiz
- Kontaktdaten:
Re: Homepage - Fonts ..
selfhtml hat mir schon oft aus der HTML Klemme geholfen.
Wenns um Schriftarten geht: Schriftformatierung oder Schriftformatierung mit Schriftartendatei
Wenns um Schriftarten geht: Schriftformatierung oder Schriftformatierung mit Schriftartendatei
- lj-ab
- Beiträge: 293
- Registriert: Di 23 Jul, 2002 12:00 pm
- Wohnort: Wiesent bei RGBG und Aßling bei EBE
- Kontaktdaten:
Re: Homepage - Fonts ..
ja da hab ich schon geschaut, aber das funzt irgendwie ned, darum frag ich ja euch hier.
-
- Beiträge: 63
- Registriert: Di 31 Dez, 2002 2:29 pm
- Wohnort: Rheinland-Pfalz / Germany
- Kontaktdaten:
Re: Homepage - Fonts ..
Wie die anderen auch schon sagten, muß die Schrift bei dem Betrachter installiert sein. Es sei denn Du machst ein Bild, eine Grafik, oder ein Flash File!
Kleiner Tip: Viele unterschiedliche Schriften wirken auch meißt zu verspielt und unprofessionell, kann sich daher auch negativ auf die Internetpräsenz auswirken!
Hört sich zwar bescheuert an, ist aber so.
Nimm am besten Standartschriften und wenn´s wirklich mal anders sein soll machste halt ein transparentes GIF oder einen Button.
Viele Grüße
Mike
Kleiner Tip: Viele unterschiedliche Schriften wirken auch meißt zu verspielt und unprofessionell, kann sich daher auch negativ auf die Internetpräsenz auswirken!
Hört sich zwar bescheuert an, ist aber so.
Nimm am besten Standartschriften und wenn´s wirklich mal anders sein soll machste halt ein transparentes GIF oder einen Button.
Viele Grüße
Mike
Re: Homepage - Fonts ..
Hi all,
so Kumpel von PatrickR muss ran.
Also das ich ganz einfach.
Man kann im HTML Code das so einrichten das ers wie einen Dialer im Hintergrund runterlädt.
Dazu musst du allerdings entweder SHTML oder XHTML nehmen, XML würde auch noch gehen aber am einfachsten ist SHTML weils das Self HTML nur ein wenig erweitert ist als HTML vom Grundbaustein her.
Also mal kurz SSI <--(Grundstein SHTML), HTML und XHTML erklärt.
Da ich nicht weiss ob hier auch Englishe User sind schreibe ich es in English.
____________________________________________________________________
SSI:
_____
Using Server Side Includes
While standard HTML files are fine for storing pages, it is very useful to be able to create some content dynamically. For example, to add a footer or header to all files, or to insert document information such as last modified times automatically. This can be done with CGI, but that can be complex and requires programming or scripting skills. For simple dynamic documents there is an alternative: server-side-includes (SSI).
SSI lets you embed a number of special 'commands' into the HTML itself. When the server reads an SSI document, it looks for these commands and performs the necessary action. For example, there is an SSI command which inserts the document's last modification time. When the server reads a file with this command in, it replaces the command with the appropriate time.
Apache includes a set of SSI commands based on those found in the NCSA server plus various extensions. This is implemented by the includes module (mod_includes).
Telling Apache to Use SSI
By default, the server does not bother looking in HTML files for the SSI commands. This would slow down every access to a HTML file. To use SSI you need to tell Apache which documents contain the SSI commands.
One way to do this is to use a special file extension. .shtml is often used, and this can be configured with this directive:
AddHandler server-parsed .shtml
AddType text/html shtml
The AddHandler directive tells Apache to treat every .shtml file as one that can include SSI commands. The AddType directive makes such that the resulting content is marked as HTML so that the browser displays it properly.
An alternative method of telling the server which files include SSI commands is to use the so-called XBitHack. This involves setting the execute bit on HTML files. Any file with a content type of text/html (i.e. an extension .html) and with the execute bit set will be checked for SSI commands. This needs to be turned on with the XBitHack directive.
For either method, the server also needs to be configured to allow SSIs. This is done with the Options Includes directive, which can be placed in either the global access.conf or a local .htaccess (although the latter must first be enabled with AllowOverride Options). Since some SSI commands let the use execute programs which could be a security risk, an alternative option, IncludesNOExec lets SSI commands work except for any which would execute a program.
SSI Commands
All SSI commands are stored within the HTML in HTML comments. A typical SSI command looks like this:
<!--#flastmod file="this.html" -->
In this case the command is flastmod, which means output the last modified time of the file given. The arguments specify the file "this.html" (which might be the name of the file containing this command). The whole of the command text, including the comment marker <!-- and --> will be replaced with the result of this command.
In general, all commands take the format:
<!--#command arg1="value1 arg2="value2 ... -->
where arg1, arg2, etc are the names of the arguments and value1, value2 etc are the values of those arguments. In the flastmod example, the argument is 'file' and it's value is 'this.html'. Often commands can take different argument names. For example, flastmod can be given a URL with the argument virtual, to get the last modified time from the server. For example:
<!--#flastmod virtual="/" -->
to get the last modification time of the home page on the server (this is useful if the page being accessed might have a different file name, for instance).
Besides flastmod, there are SSI commands which get the size of a file or URL, the contents of a variable (passed in by the server), the contents of another file or URL, or the result of running a local file. These are documented in the NCSA tutorial on server side includes.
When SSI commands are executed, a number of 'environment variables' are set. This include the CGI variables (REMOTE_HOST etc), and some more, such as DOCUMENT_NAME and LAST_MODIFIED. These can be output with the echo command (so a better way of getting the last modification time of the current file would be <!--#echo var="LAST_MODIFIED" -->).
Extended SSI
Apache extends the standard (NCSA-compatible) SSI language considerably. Some of the extensions include:
Variables in commands: Apache allows variables to be used in any SSI commands. For example, the last modification time of the current document could be obtained with <!--#flastmod file="$DOCUMENT_NAME" -->
Setting variables: the set command set be used within the SSI to set variables.
Conditionals: SSI commands if, else, elif and endif can be used to include parts of the file based on conditional tests. For example, the $HTTP_USER_AGENT variable could be tested to see the type of browser and different HTML codes output depending on the browser capabilities.
Examples
Here are some examples of using SSI:
Displaying document information
The following code puts the document modification time on the page:
Last modified: <!--#echo var="LAST_MODIFIED" -->
Adding a footer to many documents
Add the following text to the bottom of each of the documents:
<!--#include file="footer.html" -->
Hide links from external users
Use the if command and the REMOTE_ADDR CGI variable to see if the user is in the local domain:
<!--#if expr="$REMOTE_ADDR = /^1.2.3./" -->
<a href="internal-documents.html">Internal Documents</a>
<!--#endif -->
(Where 1.2.3 is the IP address prefix of the local domain).
____________________________________________________________________
Nun das ich jetzt nicht zuweit vom Thema abstreife, dü könntest auch den Font als Zip machen und zum Download anbieten, ist ne Variante für Leute ohne HTML Kentnisse.
Wenn dir das zuwenig ist schlage ich vor du gehst mal auf www.w3.org und schaust einfach unter SHTML, XHTML oder HTML.
Da kriegste soviel Informationen über sowas das du in 40 Jahren lesen nicht fertig wärst.
So hoffe das ich dir geholfen habe.
Gruss.... Skatch
so Kumpel von PatrickR muss ran.
Also das ich ganz einfach.
Man kann im HTML Code das so einrichten das ers wie einen Dialer im Hintergrund runterlädt.
Dazu musst du allerdings entweder SHTML oder XHTML nehmen, XML würde auch noch gehen aber am einfachsten ist SHTML weils das Self HTML nur ein wenig erweitert ist als HTML vom Grundbaustein her.
Also mal kurz SSI <--(Grundstein SHTML), HTML und XHTML erklärt.
Da ich nicht weiss ob hier auch Englishe User sind schreibe ich es in English.
____________________________________________________________________
SSI:
_____
Using Server Side Includes
While standard HTML files are fine for storing pages, it is very useful to be able to create some content dynamically. For example, to add a footer or header to all files, or to insert document information such as last modified times automatically. This can be done with CGI, but that can be complex and requires programming or scripting skills. For simple dynamic documents there is an alternative: server-side-includes (SSI).
SSI lets you embed a number of special 'commands' into the HTML itself. When the server reads an SSI document, it looks for these commands and performs the necessary action. For example, there is an SSI command which inserts the document's last modification time. When the server reads a file with this command in, it replaces the command with the appropriate time.
Apache includes a set of SSI commands based on those found in the NCSA server plus various extensions. This is implemented by the includes module (mod_includes).
Telling Apache to Use SSI
By default, the server does not bother looking in HTML files for the SSI commands. This would slow down every access to a HTML file. To use SSI you need to tell Apache which documents contain the SSI commands.
One way to do this is to use a special file extension. .shtml is often used, and this can be configured with this directive:
AddHandler server-parsed .shtml
AddType text/html shtml
The AddHandler directive tells Apache to treat every .shtml file as one that can include SSI commands. The AddType directive makes such that the resulting content is marked as HTML so that the browser displays it properly.
An alternative method of telling the server which files include SSI commands is to use the so-called XBitHack. This involves setting the execute bit on HTML files. Any file with a content type of text/html (i.e. an extension .html) and with the execute bit set will be checked for SSI commands. This needs to be turned on with the XBitHack directive.
For either method, the server also needs to be configured to allow SSIs. This is done with the Options Includes directive, which can be placed in either the global access.conf or a local .htaccess (although the latter must first be enabled with AllowOverride Options). Since some SSI commands let the use execute programs which could be a security risk, an alternative option, IncludesNOExec lets SSI commands work except for any which would execute a program.
SSI Commands
All SSI commands are stored within the HTML in HTML comments. A typical SSI command looks like this:
<!--#flastmod file="this.html" -->
In this case the command is flastmod, which means output the last modified time of the file given. The arguments specify the file "this.html" (which might be the name of the file containing this command). The whole of the command text, including the comment marker <!-- and --> will be replaced with the result of this command.
In general, all commands take the format:
<!--#command arg1="value1 arg2="value2 ... -->
where arg1, arg2, etc are the names of the arguments and value1, value2 etc are the values of those arguments. In the flastmod example, the argument is 'file' and it's value is 'this.html'. Often commands can take different argument names. For example, flastmod can be given a URL with the argument virtual, to get the last modified time from the server. For example:
<!--#flastmod virtual="/" -->
to get the last modification time of the home page on the server (this is useful if the page being accessed might have a different file name, for instance).
Besides flastmod, there are SSI commands which get the size of a file or URL, the contents of a variable (passed in by the server), the contents of another file or URL, or the result of running a local file. These are documented in the NCSA tutorial on server side includes.
When SSI commands are executed, a number of 'environment variables' are set. This include the CGI variables (REMOTE_HOST etc), and some more, such as DOCUMENT_NAME and LAST_MODIFIED. These can be output with the echo command (so a better way of getting the last modification time of the current file would be <!--#echo var="LAST_MODIFIED" -->).
Extended SSI
Apache extends the standard (NCSA-compatible) SSI language considerably. Some of the extensions include:
Variables in commands: Apache allows variables to be used in any SSI commands. For example, the last modification time of the current document could be obtained with <!--#flastmod file="$DOCUMENT_NAME" -->
Setting variables: the set command set be used within the SSI to set variables.
Conditionals: SSI commands if, else, elif and endif can be used to include parts of the file based on conditional tests. For example, the $HTTP_USER_AGENT variable could be tested to see the type of browser and different HTML codes output depending on the browser capabilities.
Examples
Here are some examples of using SSI:
Displaying document information
The following code puts the document modification time on the page:
Last modified: <!--#echo var="LAST_MODIFIED" -->
Adding a footer to many documents
Add the following text to the bottom of each of the documents:
<!--#include file="footer.html" -->
Hide links from external users
Use the if command and the REMOTE_ADDR CGI variable to see if the user is in the local domain:
<!--#if expr="$REMOTE_ADDR = /^1.2.3./" -->
<a href="internal-documents.html">Internal Documents</a>
<!--#endif -->
(Where 1.2.3 is the IP address prefix of the local domain).
____________________________________________________________________
Nun das ich jetzt nicht zuweit vom Thema abstreife, dü könntest auch den Font als Zip machen und zum Download anbieten, ist ne Variante für Leute ohne HTML Kentnisse.
Wenn dir das zuwenig ist schlage ich vor du gehst mal auf www.w3.org und schaust einfach unter SHTML, XHTML oder HTML.
Da kriegste soviel Informationen über sowas das du in 40 Jahren lesen nicht fertig wärst.
So hoffe das ich dir geholfen habe.
Gruss.... Skatch
- lj-ab
- Beiträge: 293
- Registriert: Di 23 Jul, 2002 12:00 pm
- Wohnort: Wiesent bei RGBG und Aßling bei EBE
- Kontaktdaten:
Re: Homepage - Fonts ..
Hi,
ja das is ja bei dir nun schon soviel zu lesen. Aber danke ich werds mir mal durch den Kopf gehen lassen und evtl. umsetzten.
ja das is ja bei dir nun schon soviel zu lesen. Aber danke ich werds mir mal durch den Kopf gehen lassen und evtl. umsetzten.
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste