mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Removed some win32 warnings, made CustomTypeface automatically update its ascent.
This commit is contained in:
parent
d083d4f22f
commit
258b3eff81
4 changed files with 8 additions and 0 deletions
|
|
@ -86511,6 +86511,8 @@ bool CustomTypeface::loadGlyphIfPossible (const juce_wchar /*characterNeeded*/)
|
|||
|
||||
void CustomTypeface::addGlyphsFromOtherTypeface (Typeface& typefaceToCopy, juce_wchar characterStartIndex, int numCharacters) throw()
|
||||
{
|
||||
setCharacteristics (name, typefaceToCopy.getAscent(), isBold, isItalic, defaultCharacter);
|
||||
|
||||
for (int i = 0; i < numCharacters; ++i)
|
||||
{
|
||||
const juce_wchar c = (juce_wchar) (characterStartIndex + i);
|
||||
|
|
|
|||
|
|
@ -3485,9 +3485,11 @@ private:
|
|||
// (Required as an alternative to the overloaded & operator).
|
||||
const ScopedPointer* getAddress() const throw() { return this; }
|
||||
|
||||
#if ! JUCE_MSVC // (MSVC can't deal with multiple copy constructors)
|
||||
// This is private to stop people accidentally copying a const ScopedPointer (the compiler
|
||||
// will let you do so by implicitly casting the source to its raw object pointer).
|
||||
ScopedPointer (const ScopedPointer&);
|
||||
#endif
|
||||
};
|
||||
|
||||
template <class ObjectType>
|
||||
|
|
|
|||
|
|
@ -167,9 +167,11 @@ private:
|
|||
// (Required as an alternative to the overloaded & operator).
|
||||
const ScopedPointer* getAddress() const throw() { return this; }
|
||||
|
||||
#if ! JUCE_MSVC // (MSVC can't deal with multiple copy constructors)
|
||||
// This is private to stop people accidentally copying a const ScopedPointer (the compiler
|
||||
// will let you do so by implicitly casting the source to its raw object pointer).
|
||||
ScopedPointer (const ScopedPointer&);
|
||||
#endif
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -238,6 +238,8 @@ bool CustomTypeface::loadGlyphIfPossible (const juce_wchar /*characterNeeded*/)
|
|||
|
||||
void CustomTypeface::addGlyphsFromOtherTypeface (Typeface& typefaceToCopy, juce_wchar characterStartIndex, int numCharacters) throw()
|
||||
{
|
||||
setCharacteristics (name, typefaceToCopy.getAscent(), isBold, isItalic, defaultCharacter);
|
||||
|
||||
for (int i = 0; i < numCharacters; ++i)
|
||||
{
|
||||
const juce_wchar c = (juce_wchar) (characterStartIndex + i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue