hello,
i have a Trajan Pro font on my site.
when i put in the web, the people that don´t have the font installed on computer
is unable to see with the font that i choose.
how can i load the font on my server? i beliave there is some way to do this
thanks for your help

Dani AI

Generated

Short summary and practical path forward: the usual, modern fix is to deliver the font from your server (or a hosted webfont service) and declare it with CSS @font-face so visitors who do not have Trajan Pro locally still get the same type. Be careful: Trajan Pro is a commercial Adobe/Monotype family and you must have a web/embed license before uploading webfont files taken from a desktop install or redistributing them. ’s OS question isn’t relevant for web delivery — the browser downloads whatever you expose from your server. ’s Cufon idea was popular years ago but is outdated; using @font-face or a vendor-hosted webfont is the standard approach. (developer.mozilla.org)

A minimal, pragmatic @font-face pattern (self-hosting, with fallbacks and a friendly load strategy):

@font-face {
  font-family: "TrajanProWeb";
  src: local("Trajan Pro"), local("TrajanPro-Regular"),
       url("/fonts/trajan.woff2") format("woff2"),
       url("/fonts/trajan.woff") format("woff"),
       url("/fonts/trajan.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

Use local() first so the browser uses a user-installed copy if present; include woff2 + woff (and a TTF/OTF fallback) and add font-display to avoid long invisible-text waits. After adding this, apply font-family: "TrajanProWeb", serif; to headings. (developer.mozilla.org)

Troubleshooting checklist: confirm font file URLs (watch the Network tab for 404s), serve correct MIME types (font/woff, font/woff2, font/ttf), and if fonts come from another domain/CDN set Access-Control-Allow-Origin or configure your CDN to allow cross-origin font requests (browsers block cross-origin font loads unless CORS is allowed). Prefer delivering compressed WOFF2 for modern browsers. Test in multiple browsers (older IE needs EOT or other fallbacks). (developer.mozilla.org)

Quick steps to follow: 1) confirm/buy a webfont license for Trajan Pro (or pick a free alternative), 2) get/convert webfont files (woff2/woff), 3) upload to your server and add the @font-face rule above, 4) test and fix CORS/MIME/path issues. This will make the type appear the same for visitors whether or not Trajan Pro is installed locally.

Recommended Answers

All 4 Replies

What OS are you using? You could google for the answer using keywords "how to load fonts" but you need to specify what OS you use. If it is Windows, there are different ways to do with different Windows version...

Cufon is an option.

A google search for web fonts found me google web fonts, a js way of loading fonts

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.