LaTeX forum ⇒ Fonts & Character SetsFont style other then normal font of document

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Font style other then normal font of document

Postby sheenshahid » Sat Jan 25, 2020 3:29 pm

I want to write the name of univ in this style (See attached figure below) which is change other then style of the document (which is in times new roman). how its possible

Capture.JPG
Capture.JPG (11.08 KiB) Viewed 567 times

User avatar
Ijon Tichy
Posts: 269
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Sat Jan 25, 2020 6:17 pm

With LuaLaTeX or XeLaTeX and fontspec you can easily load other fonts.

sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Postby sheenshahid » Sat Jan 25, 2020 7:34 pm

but i m using Latex. Plz guide completely.

User avatar
Ijon Tichy
Posts: 269
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Sat Jan 25, 2020 8:01 pm

LuaLaTeX and XeLaTeX are LaTeX with TeX engine LuaTeX or XeTeX, like PDFLaTeX is LaTeX with TeX engine PDFTeX.

Usage of other fonts is possible with PDFLaTeX too, but then you need a font installation package. Using TTF or OTF fonts with XeLaTeX or LuaLaTeX is much easier.

sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Postby sheenshahid » Tue Jan 28, 2020 9:35 pm

Dear I m new to latex . I m still unable what to do ?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9568
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Jan 29, 2020 6:45 am

Hi sheenshahid,

welcome to the forum!

sheenshahid wrote:Plz guide completely.


Complete guidance with much effort while you shorten your own effort? "Plz" and "univ" and no own code. I just guess that may not work.

We usually like to talk about LaTeX, fix errors in 5 minutes or give advice in 5 minutes, as we enjoy talking here. Sometimes we spend more time in a serious conversation. Perhaps let us know the font you need to use, for example.

Stefan
LaTeX.org admin

User avatar
Ijon Tichy
Posts: 269
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Wed Jan 29, 2020 11:38 am

Indeed, I do not know the font you want to use. But here is a Infominimal working example that shows, how to use fontspec and either LuaLaTeX or XeLaTeX to load and use additional fonts.

Code: [Select all] [Expand/Collapse] [Download] (fontspec-example.tex)
  1. % Important: You have to use LuaLaTeX or XeLaTeX instead of PDFLaTeX zu
  2. % compile this file!
  3. \documentclass{article}
  4.  
  5. \usepackage{fontspec}
  6. \usepackage{blindtext}
  7. \usepackage[english]{babel}
  8.  
  9. \setmainfont{TeX Gyre Termes}% Use the Times clone TeX Gyre Termes as main font.
  10. \newfontfamily{\otherfamily}{TeX Gyre Chorus}% Load TeX Gyre Chorus as an additional font family.
  11.  
  12. \begin{document}
  13. \begin{titlepage}
  14. {\otherfamily This is the name of the university.}
  15. \vfill
  16. {\Huge\bfseries The Name of the Game\par}
  17. \bigskip
  18. {\large\bfseries Me and Boby McGee\par}
  19. \vfill\vfill\vfill
  20. \end{titlepage}
  21. \tableofcontents
  22. \blinddocument
  23. \end{document}


Image

I've used the Times clone TeX Gyre Termes as main document font and loaded TeX Gyre Chorus (a font bases in Chancery Italic) as additional font. But you can use any other font, you've installed correctly. See the fontspec manual about how to alternatively load fonts by file name (and even path), if loading per name fails (e.g. because the font has not been installed correctly).

User avatar
Stefan Kottwitz
Site Admin
Posts: 9568
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Jan 30, 2020 3:06 am

Thanks Ijon, very nice! The example works on my Mac with randomly chosen fonts.

Stefan
LaTeX.org admin

sheenshahid
Posts: 20
Joined: Fri Jan 24, 2020 10:31 am

Postby sheenshahid » Fri Jan 31, 2020 12:32 pm

Dear Stephan
Thanks for ur reply.
The name of this font is " old English " , which I noted from Microsoft word. I have to write just name of my univ in this old English font style .
Regards

User avatar
Johannes_B
Site Moderator
Posts: 4163
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Jan 31, 2020 1:45 pm

The most fast and most easy way for you seems to be writing it in Word and making a screenshot.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 1 guest