%%
%% This is file `linguistix-logos.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% linguistix.dtx  (with options: `logos')
%% ---------------------------------------------------------
%% Bundle:       LinguisTiX
%% Version:      v0.5d
%% Author:       निरंजन
%% Description:  Enhanced support for linguistics.
%% Repository:   puszcza.gnu.org.ua/projects/linguistix
%% License:      GPLv3+, GFDLv1.3+
%% ---------------------------------------------------------
%% 
%% The LinguisTiX bundle v0.5d
%% Copyright © 2022, 2023, 2024, 2025 निरंजन
%% 
%% This program is free software: you can redistribute it
%% and/or modify it under the terms of the GNU General
%% Public License as published by the Free Software
%% Foundation, either version 3 of the License, or (at your
%% option) any later version.
%% 
%% This program is distributed in the hope that it will be
%% useful, but WITHOUT ANY WARRANTY; without even the
%% implied warranty of MERCHANTABILITY or FITNESS FOR A
%% PARTICULAR PURPOSE. See the GNU General Public License
%% for more details.
%% 
%% You should have received a copy of the GNU General Public
%% License along with this program. If not, see
%% <https://www.gnu.org/licenses/>.
%% 
%% ---------------------------------------------------------
\ProvidesExplPackage{linguistix-logos}
                    {2025-07-11}
                    {v0.5d}
                    {%
                      Logos of the ‘LinguisTiX’ bundle..%
                    }

\IfPackageLoadedF { fontspec } {
  \RequirePackage { fontspec }
}

\newfontfamily \lngx_logo_font: [
  IgnoreFontspecFile,
  UprightFont            = { NewCMUncial10-Book.otf },
  UprightFeatures        = {
    SizeFeatures           = {
      {
        Size                   = {-8},
        Font                   = {NewCMUncial08-Book.otf}
      },
      {
        Size                   = {8-},
        Font                   = {NewCMUncial10-Book.otf}
      },
    }
  },
  BoldFont               = { NewCMUncial10-Bold.otf },
  BoldFeatures           = {
    SizeFeatures           = {
      {
        Size                   = {-8},
        Font                   = {NewCMUncial08-Bold.otf}
      },
      {
        Size                   = {8-},
        Font                   = {NewCMUncial10-Bold.otf}
      },
    }
  },
  Renderer               = { HarfBuzz }
]{ NewCMUncial10-Book.otf }

\color_set:nn { lngx _ purple _ color } { blue ! 50 ! red }

\NewDocumentCommand \lngxlogo { O{} } {%
  \group_begin:
  \lngx_logo_font:
  LinguisTi
  \color_group_begin:
  \color_select:n { lngx_purple_color }
  X
  \color_group_end:
  \IfBlankF { #1 } { - #1 }
  \group_end:
}

\cs_new:Npn \lngxpkg {
  \IfPackageLoadedTF { hyperref } {
    \texorpdfstring {
      \lngxlogo
    } {
      LinguisTiX
    }
  } {
    \lngxlogo
  }
}

\clist_map_inline:nn {
  base,
  examples,
  fixpex,
  fonts,
  ipa,
  logos,
  nfss
} {
  \cs_new:cpn { lngx #1 logo } {
    \texorpdfstring {
      \lngxlogo [ #1 ]
    } {
      LinguisTiX - #1
    }
  }
}
\endinput
%%
%% End of file `linguistix-logos.sty'.
