latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
276 stars 33 forks source link

defaultfontfeatures not working properly. #429

Open niruvt opened 4 years ago

niruvt commented 4 years ago

Description

defaultfontfeatures is not working properly with XeLaTeX. Mapping is not carried forward to all the subsequent fonts.

Check/indicate

Minimal example demonstrating the issue

%!TeX Program = xelatex
\documentclass{article}
\usepackage{fontspec}
\usepackage{babel}
\babelprovide[import, main, maparabic, mapdigits]{marathi}
\defaultfontfeatures{Script=Devanagari,Mapping=devanagarinumerals} % This doesn't give local numbers.
\setmainfont{Shobhika}%[Mapping=devanagarinumerals] Uncommenting this works.

\begin{document}
\title{नमुना}
\author{लेखक}
\maketitle
\end{document}

Further details

This issue is related to this one.