fontspec
fontspec copied to clipboard
defaultfontfeatures not working properly.
Description
defaultfontfeatures is not working properly with XeLaTeX. Mapping is not carried forward to all the subsequent fonts.
Check/indicate
- [x] Relevant for XeTeX
- [x] Issue tracker has been searched for similar issues?
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.