0

I want to declare a custom font family and one of my otf files is called BemboTitlingMTStd-Italic.otf. I want to use this whenever I use the command \textit{\textsc{...}} in my document, but I can't find anything in the fntguide on how to combine small caps and italic otf files:

The most common values for the font series are:

m Medium

b Bold

bx Bold extended

sb Semi-bold

c Condensed

The most common values for the font shape are:

n Normal (that is upright' orroman')

it Italic

sl Slanted (or `oblique')

sc Caps and small caps

So do I really have to choose between italic shape or small caps shape, or can I combine the two in my .fd file?

Ideally the command would look a little like:

\DeclareFontShape{T1}{Bembo}{m}{sc}{it}{
   <-> T1--Bembo--TitlingMTStd--Italic
}{}%

...But obviously that didn't get me anywhere.

Any suggestions?

PS: Feel free to edit tags or add tags, I couldn't find an appropriate one for the problem. Sorry.

  • 1
    Since you have otf files, is there any particular reason why you’re not using fontspec with xetex or luatex? You’d save yourself days worth of work. – Thérèse Jul 6 '14 at 18:24
  • Good suggestion. I'll consider it but obviously I'd still prefer the more general approach so that I know it will function as intended for documents that don't or can't use XeTeX or LuaTeX as well. – 1010011010 Jul 6 '14 at 19:04
  • The package fontaxes might help. – egreg Jul 6 '14 at 19:54
  • But you need to use those to use an opentype font - neither latex nor pdflatex can use otf unconverted. If you had suitable fonts, you'd use \DeclareFontShape{T1}{Bembo}{m}{si} ... or scsl or whatever to define a new shape. But you then need (1) suitable TeX fonts for use with (pdf)latex, (2) a support package to support the shape e.g. fontaxes or nfssext-cfr. In either case, your fonts must be named in ways those files expect. (The packages use different naming schemes.) There is absolutely no simple general way for (pdf)latex. For this font only, Bernard's answer. – cfr Jul 6 '14 at 23:56
  • @cfr I can't find any documentation on when a TeX font would be "suitable" as you name it. Where can I see if my files meet the criteria for this? – 1010011010 Jul 7 '14 at 1:00
1

A partial answer only: the slantsc package allows to add the \scshape information to other shapes. You can take a look at the fbb package documentation. It is an extension of Cardo (a Bembo clone) that has small caps in italic shape and bold weight.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.