anchor.diff:  end;
   
   
  -//Export texture atlas into a bitmap file (just for looks)
  +// Export texture atlas into a bitmap file (just for looks)
   procedure TKMFontSpec.ExportAtlasBmp(const aPath: string; aIndex: Integer);
   var
     exportBmp: TBitmap;
  
positive.code:   S: TMemoryStream;
    fileName: string;
    I, K, M, L: Integer;
    MaxHeight: Integer;
    pX, pY: Integer;
  begin
    MaxHeight := 0;
    if not FileExists(aFileName) then
      Exit;
  
    S := TMemoryStream.Create;
    S.LoadFromFile(aFileName);
  
  
negative.code: end;
  
  
  // Generate color texture from prepared data
  procedure TKMFontSpec.GenerateTextures(aTexMode: TTexFormat);
  var
    I: Integer;
    textureRAM: Cardinal;
  begin
    textureRAM := 0;
    for I := 0 to fAtlasCount - 1 do
      if fAtlases[I].TexID = 0 then //Don't load atlases twice if switching from minimal to full
        if Length(fAtlases[I].TexData) <> 0 then
        begin
          fAtlases[I].TexID := TRender.GenTexture(fTexSizeX, fTexSizeY, @fAtlases[I].TexData[0], aTexMode, ftNearest, ftNearest);
          Inc(textureRAM, fTexSizeX * fTexSizeY * TEX_FORMAT_SIZE[aTexMode]);
        end
        else
          fAtlases[I].TexID := 0;
  
    if LOG_FONTS_RAM_USAGE then
      gLog.AddNoTime('Font RAM usage: ' + IntToStr(textureRAM));
  end;
  
  
  