Process the following with pdftex. Character - is not searchable:
\font\f=cmtex10 \f
-
\bye
Compare with cmtt10 font:
\tt
-
\bye
Is this a feature or a bug?
Will the following code in format file be a proper fix for this problem?
% \input glyphtounicode
\pdfgentounicode=1
\everyjob=\expandafter{\the\everyjob
\pdfglyphtounicode{minus}{002D}}
Is in necessary to use "\input glyphtounicode"?
EDIT
According to info on this page, cmtex must have the same parameters as cmtt:
The extended ASCII font, cmtex10, has the parameters of cmtt10 ...
How should I proceed to get it fixed in cmtex fonts in TeX Live?
dup 45 /minus put(which is imho wrong) and in cmtt10.pfbdup 45 /hyphen put. pdf viewer handles such naming inconsistencies differently. I wouldn't call it a problem that the real minus is affected (it even makes copy and paste of math better), but you should be aware of it. – Ulrike Fischer Mar 22 '16 at 10:09