diff --git a/src/Magnum/Text/fontconverter.cpp b/src/Magnum/Text/fontconverter.cpp index 56d15d97e..833f53e32 100644 --- a/src/Magnum/Text/fontconverter.cpp +++ b/src/Magnum/Text/fontconverter.cpp @@ -50,7 +50,7 @@ #error no windowless application available on this platform #endif -namespace Magnum { +namespace Magnum { namespace { /** @page magnum-fontconverter Font conversion utility @@ -124,8 +124,6 @@ The resulting font files can be then used as specified in the documentation of `converter` plugin. */ -namespace Text { - #ifndef DOXYGEN_GENERATING_OUTPUT class FontConverter: public Platform::WindowlessApplication { public: @@ -169,27 +167,27 @@ int FontConverter::exec() { }; /* Load font */ - PluginManager::Manager fontManager{ + PluginManager::Manager fontManager{ #ifndef CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT args.value("plugin-dir").empty() ? Containers::String{} : - Utility::Path::join(args.value("plugin-dir"), Utility::Path::filename(AbstractFont::pluginSearchPaths().back())) + Utility::Path::join(args.value("plugin-dir"), Utility::Path::filename(Text::AbstractFont::pluginSearchPaths().back())) #endif }; - Containers::Pointer font = fontManager.loadAndInstantiate(args.value("font")); + Containers::Pointer font = fontManager.loadAndInstantiate(args.value("font")); if(!font) return 1; /* Register the image converter manager for potential dependencies (MagnumFontConverter needs TgaImageConverter, for example) */ - PluginManager::Manager converterManager{ + PluginManager::Manager converterManager{ #ifndef CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT args.value("plugin-dir").empty() ? Containers::String{} : - Utility::Path::join(args.value("plugin-dir"), Utility::Path::filename(AbstractFontConverter::pluginSearchPaths().back())) + Utility::Path::join(args.value("plugin-dir"), Utility::Path::filename(Text::AbstractFontConverter::pluginSearchPaths().back())) #endif }; converterManager.registerExternalManager(imageConverterManager); /* Load font converter */ - Containers::Pointer converter = converterManager.loadAndInstantiate(args.value("converter")); + Containers::Pointer converter = converterManager.loadAndInstantiate(args.value("converter")); if(!converter) return 2; /* Open font */ @@ -199,11 +197,11 @@ int FontConverter::exec() { } /* Create distance field glyph cache if radius is specified */ - Containers::Pointer cache; + Containers::Pointer cache; if(!args.value("output-size").isZero()) { Debug() << "Populating distance field glyph cache..."; - cache.emplace( + cache.emplace( args.value("atlas-size"), args.value("output-size"), args.value("radius")); @@ -212,7 +210,7 @@ int FontConverter::exec() { } else { Debug() << "Zero-size distance field output specified, populating normal glyph cache..."; - cache.emplace(PixelFormat::R8Unorm, args.value("atlas-size")); + cache.emplace(PixelFormat::R8Unorm, args.value("atlas-size")); } /* Fill the cache */ @@ -232,8 +230,6 @@ int FontConverter::exec() { } #endif -} - -} +}} -MAGNUM_WINDOWLESSAPPLICATION_MAIN(Magnum::Text::FontConverter) +MAGNUM_WINDOWLESSAPPLICATION_MAIN(Magnum::FontConverter) diff --git a/src/Magnum/TextureTools/distancefieldconverter.cpp b/src/Magnum/TextureTools/distancefieldconverter.cpp index 0044588ab..dee5089fc 100644 --- a/src/Magnum/TextureTools/distancefieldconverter.cpp +++ b/src/Magnum/TextureTools/distancefieldconverter.cpp @@ -58,7 +58,7 @@ #error no windowless application available on this platform #endif -namespace Magnum { +namespace Magnum { namespace { /** @page magnum-distancefieldconverter Distance Field conversion utility @brief Converts red channel of an image to distance field representation @@ -129,8 +129,6 @@ ratio of the source image size and and `--output-size` is expected to be a multiple of 2. */ -namespace TextureTools { - #ifndef DOXYGEN_GENERATING_OUTPUT class DistanceFieldConverter: public Platform::WindowlessApplication { public: @@ -255,4 +253,4 @@ int DistanceFieldConverter::exec() { }} -MAGNUM_WINDOWLESSAPPLICATION_MAIN(Magnum::TextureTools::DistanceFieldConverter) +MAGNUM_WINDOWLESSAPPLICATION_MAIN(Magnum::DistanceFieldConverter)