[LyX/master] Fix Qt dep warn and remove XLFD font workaround

Scott Kostyshak skostysh at lyx.org
Fri Mar 20 13:21:09 UTC 2020


On Fri, Mar 20, 2020 at 12:15:32PM +0100, Enrico Forestieri wrote:
> On Thu, Mar 19, 2020 at 05:12:19PM +0100, Scott Kostyshak wrote:
> > commit d4ff3a295959d27e21fb914d78505cebd96732ad
> > Author: Scott Kostyshak <skostysh at lyx.org>
> > Date:   Thu Mar 19 12:20:16 2020 -0400
> > 
> >     Fix Qt dep warn and remove XLFD font workaround
> [...]
> > @@ -215,11 +204,8 @@ QFont symbolFont(QString const & family, bool * ok)
> >  		return font;
> >  	}
> >  
> > -	// A simple setFamily() fails on Qt 2
> > -
> > -	QString const raw = rawName(family);
> > -	LYXERR(Debug::FONT, "Trying " << raw << " ... ");
> > -	font.setRawName(raw);
> > +	LYXERR(Debug::FONT, "Trying " << family << " ... ");
> > +	font.setFamily(family);
> >  
> >  	if (isChosenFont(font, family, QString())) {
> >  		LYXERR(Debug::FONT, "raw version!");
> 
> I think you should have simply removed this case. It will never trigger
> because it is already taken into account under the "normal" case.
> So, the correct change would have been:
> 
> > @@ -215,17 +204,6 @@ QFont symbolFont(QString const & family, bool * ok)
> >  		return font;
> >  	}
> >  
> > -	// A simple setFamily() fails on Qt 2
> > -
> > -	QString const raw = rawName(family);
> > -	LYXERR(Debug::FONT, "Trying " << raw << " ... ");
> > -	font.setRawName(raw);
> > -
> > -	if (isChosenFont(font, family, QString())) {
> > -		LYXERR(Debug::FONT, "raw version!");
> > -		*ok = true;
> > -		return font;
> > -	}
> >
> >	LYXERR(Debug::FONT, " FAILED :-(");
> >	*ok = false;

You're right, I should have done that. Fixed at f8e40f8ab8.

Thanks,

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200320/6b6e3f6c/attachment.asc>


More information about the lyx-devel mailing list