I am writing a document in the font Alegreya Sans. When I enter an apostrophe, it at first shows up as a curly apostrophe (U+2019 RIGHT SINGLE QUOTATION MARK). But as soon as I enter another character (as in a contraction), the apostrophe changes to a straight quote (U+0027 APOSTROPHE). This can only be saved by entering the symbol manually via the “Insert Special Characters” dialog.
This does not occur with any other fonts, only Alegreya Sans. I don’t believe it’s a bug in the font; the font’s straight and curly quotes are at the correct Unicode points.